Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    8
    Vote Rating
    0
    ramirez is on a distinguished road

      0  

    Default Help me create a Radio Tree Panel for ExtJs 4

    Help me create a Radio Tree Panel for ExtJs 4


    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.

    Code:
    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.

  2. #2
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    Just some thoughts, looked in tree.View code, and I think you could try to extend the view and override the methods and cfgs which are related to the checkbox, or create a plugin wich will do the same :
    1. the css class (checkboxSelector), probably only to change checkbox imgs to radio
    2. Change to a radio behavior in the methods: onCheckboxChange, onCheckChange, getChecked.
    3. Take care that a root node will have only one child(NodeInterface) with checked set to true.

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2010
    Location
    Ireland
    Posts
    43
    Vote Rating
    0
    ospillane is on a distinguished road

      0  

    Default


    Hey,
    Just wondering if you got this working as I have a requirement to do the same?
    Thanks

Thread Participants: 2

Tags for this Thread