1. #1
    Ext JS Premium Member
    Join Date
    Sep 2008
    Posts
    27
    Vote Rating
    0
    ravi_mura is on a distinguished road

      0  

    Question TreePanel: Remove Checkbox for few nodes

    TreePanel: Remove Checkbox for few nodes


    I need to remove checkbox from few nodes of the tree.

    Any one having idea on how to achieve?

  2. #2
    Ext JS Premium Member
    Join Date
    Sep 2008
    Posts
    27
    Vote Rating
    0
    ravi_mura is on a distinguished road

      0  

    Smile


    Achieved this by following way:
    PHP Code:
    treeLoader = new Ext.tree.TreeLoader({
     
    dataUrl// some url,
     
    listeners:{
      
    load:{scope:thisfn:function(loadernode) {
       
    //While rendering root node.. remove checkbox from toplevel
       
    if(node == root){
        var 
    cs root.childNodes;
        for(var 
    0cs.lengthi++) {
         
    nodeUI cs[i].getUI();
         
    //remove check box
         
    var cb nodeUI.getEl().getElementsByTagName("INPUT")[0]
          
    nodeUI.getEl().children[0].removeChild(cb);     
        }    
       }
      }}
     }
        }); 

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar