1. #11
    Ext User
    Join Date
    Jan 2009
    Posts
    3
    Vote Rating
    0
    YuraIM is on a distinguished road

      0  

    Default Change set in default value (cascadeCheck)

    Change set in default value (cascadeCheck)


    Hi,

    a Ext.ux.tree.CheckTreePanel does not work correctly at the change of parameter cascadeCheck(Check/uncheck also child nodes.)

    Ths

  2. #12
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I don't understand what you mean by "does not work correctly". Please elaborate.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #13
    Ext User
    Join Date
    Jan 2009
    Posts
    3
    Vote Rating
    0
    YuraIM is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    I don't understand what you mean by "does not work correctly". Please elaborate.
    change parameters: "cascadeCheck:'all'" and checked node tree, rezult - browsers irresponsive on further actions(an error here is not generated)

  4. #14
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Quote Originally Posted by YuraIM View Post
    change parameters: "cascadeCheck:'all'" and checked node tree, rezult - browsers irresponsive on further actions(an error here is not generated)
    It is race condition between cascadeCheck and bubbleCheck. Set cascadeCheck:'all' and bubbleCheck:'none' and it will work.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  5. #15
    Ext User
    Join Date
    Jan 2009
    Posts
    3
    Vote Rating
    0
    YuraIM is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    It is race condition between cascadeCheck and bubbleCheck. Set cascadeCheck:'all' and bubbleCheck:'none' and it will work.
    thanks

  6. #16
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    95
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Maybe we should merge your code an my Tri-state tree user extension?

    My extension supports a grayed (partial) state and bubbling + cascading (but not configurable as your extension).

    ps. Small bug: Double-click on the checkbox both checks/unchecks and expands/collapses the node.

  7. #17
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I've taken your code, crediting you in comments, but I didn't want tri-state functionality. Anyway, if you have an idea how to merge them an easy way, let me know. Best is skype, nick jsakalos.

    Re bug: I'll take a look.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  8. #18
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    Where i have to add a event listeners to get the 'onCheckboxClick' Event?

    PHP Code:
    Test Ext.extend(Ext.ux.tree.CheckTreePanel, {    
         
    initComponent: function(){
             
    Ext.apply(this, {
                 
    listeners: {
                        
    onCheckboxClick: function(node){
                                
    console.log('node:',node);
                        }
                               
                 },
                 
    height150,
                 
    autoScroll:true
                
    ,rootVisible:false
                
    ,root:{
                     
    nodeType:'async'
                 

    ... 
    The place in my example doesn't work

    regards

    nils

  9. #19
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  10. #20
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    yes i did, an i had read it,
    but i thought there would be a onCheckboxClick event fired but it only fire a click event with which i have no problems to add a eventhandler to.