PDA

View Full Version : How to Create a Radio Tree Panel



ramirez
6 May 2012, 7:07 AM
In ExtJs 3, I could create a Radio Tree Panel instead of a Checkbox in a Tree Panel, by extending the Ext.tree.TreeNodeUI then overriding the rendering by using an radio input type instead.


Ext.extend(Ext.ux.tree.RadioNode, Ext.tree.TreeNodeUI, {
render : function(bulkRender){
...
...
}
}

But in ExtJs 4, Ext.tree.TreeNodeUI no longer exist. I am suspecting that the code I should override is the Ext.tree.View, but by looking at its source code, I dont see anything that creates a checkbox or something like it. Maybe I am missing it or probably, I should be looking somewhere else. Which is why I posted this question here.

I will highly appreciate if someone could point me into the right direction. Thank you very much in advance.

scottmartin
7 May 2012, 12:40 PM
You will need to construct this yourself. Here are some thoughts on how to get started:
http://www.sencha.com/forum/showthread.php?202229

Regards,
Scott