1. #61
    Sencha User jwignall's Avatar
    Join Date
    Oct 2007
    Posts
    6
    Vote Rating
    0
    jwignall is on a distinguished road

      0  

    Default


    Just FYI, you left a console line(212) in TreeCheckbox.js

    console.log(this.getNodeTarget(e));

  2. #62
    Sencha User jwignall's Avatar
    Join Date
    Oct 2007
    Posts
    6
    Vote Rating
    0
    jwignall is on a distinguished road

      0  

    Default


    I was just wondering why the AsynchTriStateNodeUI isn't the default behaviour in all cases?

    I was puzzling for a while about why child checkboxes weren't checked when the parent is checked unless the parent had been expanded at least once. Is there a case where you would not want the child nodes to be toggled when a parent is toggled?

  3. #63
    Sencha User
    Join Date
    Nov 2008
    Posts
    24
    Vote Rating
    0
    Juel is on a distinguished road

      0  

    Default


    Hi,

    I just detected a bug using the TriStateTree version 1.2..
    By including the TreeCheckbox.js into a index.html - the on('click') and some other events don't fire anymore - even when using just a normal tree without TriState checkboxes.

    This is related with my Post here:
    Here's some example code:

    applayout.js:

    Code:
    Ext.onReady(function(){
    
    var data = [{ 
        //id:'a', 
        text:'A', 
        leaf:true 
        },{ 
        //id:'b', 
        text:'B', 
        leaf:true 
        }]; 
        
        var tree = new Ext.tree.TreePanel({
            width: 550,
            height: 300,
            rootVisible:false,
            autoScroll:true,
            title: 'TreeClickExample',
            renderTo: Ext.getBody(),
    
            loader: new Ext.tree.TreeLoader({
            }),
    
            root: new Ext.tree.AsyncTreeNode({
                children:data
            })
        });
    
        tree.on('click', function(n){
            alert('click');
        });
        //tree.on('dblclick', function(n){
        //    alert('dblclick');
        //});
    
    });
    index.html:

    Code:
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" href="ext-2.2/resources/css/ext-all.css" media="screen">
        <link rel="stylesheet" type="text/css" href="stylesheets/TreeCheckbox.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="stylesheets/TriStateNodeUI.css" media="screen"  />
        <script type="text/javascript" src="ext-2.2/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="ext-2.2/ext-all-debug.js"></script>
        <script type="text/javascript" src="javascripts/TreeCheckbox.js"></script>
        <script type="text/javascript" src="javascripts/TriStateNodeUI.js"></script>
        <script type="text/javascript" src="applayout.js"></script>
        <title>TreeExample</title>
    </head>
    <body>
    
    </body>
    </html>
    By removing the line:
    Code:
    <script type="text/javascript" src="javascripts/TreeCheckbox.js"></script>
    from index.html - the onclick event fires, but this is also browser specific:

    With TreeCheckbox.js included, the on('click') seems to work in Firefox 2.0.0.18
    but not in Opera 9.62 Konqueror 3.5.5, IE 6.0.3790.3959 and Firefox 3.
    The on('dblclick') event seems to work in all five of them.

    I attached a full example of my code including the latest ext - version here:

  4. #64
    Ext User
    Join Date
    Sep 2008
    Posts
    26
    Vote Rating
    0
    NaveenMinchu is on a distinguished road

      0  

    Default console.log()

    console.log()


    We could see console.log() which is debuging script at line 212 of TreeCheckbox.js which is causing some problem in IE when we use listeners for TriStateCheckbox sampple page.

    Do we require console.log() in TreeCheckbox.js ?

  5. #65
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    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


    No, sorry, I left that line in by mistake. You can safely remove it.

  6. #66
    Ext User
    Join Date
    Sep 2008
    Posts
    26
    Vote Rating
    0
    NaveenMinchu is on a distinguished road

      0  

    Default Waht are expected pros and cons of the widget

    Waht are expected pros and cons of the widget


    Hi,

    Can we please know what can we expect from the widget in terms of pros (working) and cons(non-working) stuff of the current Tri-state widgets.

    Between the this.emptyIcon in the renderElements function (At line 78) in the TreeCheckbox.js is pointing to "http://www.extjs.com/s.gif" which will obviously cause problems when the end-user using the widget is offline.

    Excpeting your reply on pros and cons.

    Appreciate your response.

    Regards,
    Naveen

  7. #67
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    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


    Quote Originally Posted by NaveenMinchu View Post
    Between the this.emptyIcon in the renderElements function (At line 78) in the TreeCheckbox.js is pointing to "http://www.extjs.com/s.gif" which will obviously cause problems when the end-user using the widget is offline.
    Did you read the first item of the Ext JS FAQ?

  8. #68
    Ext User
    Join Date
    Mar 2009
    Location
    Russia
    Posts
    19
    Vote Rating
    0
    Raz0r is on a distinguished road

      0  

    Default ColumnCheckboxTree

    ColumnCheckboxTree


    Hi!
    I've extended this plugin to display columns like in sample ColumnTree.
    Everything is the same except the names: ColumnCheckboxTree for TreePanel, ColumnCheckboxNodeUI for TriStateNodeUI and AsynchColumnCheckboxNodeUI for AsynchTriStateNodeUI.
    Greets!
    Attached Files

  9. #69
    Ext User
    Join Date
    Sep 2008
    Posts
    26
    Vote Rating
    0
    NaveenMinchu is on a distinguished road

      0  

    Default rootVisible:'false'

    rootVisible:'false'


    Hi,

    Can you please let us know why even we are setting rootVisible:'false' is showing root on UI,
    when we are using Tri-stateCheckBox tree with TreeLoader

    It is important for us, please let us know.

    Appreciate your help

    Thanks & Regards,
    Naveen

  10. #70
    Ext User
    Join Date
    Oct 2008
    Posts
    195
    Vote Rating
    0
    aj3423 is on a distinguished road

      0  

    Default


    Agree with starmage, in FireFox, drag a node then release mouse, it freezes the drag, I commented some code to fix that, it works.
    Code:
     delegateUp : function(e, t) {
    //  if(!this.beforeEvent(e)) {   // comment these 3 line
    //   return;
    //  }
      if(e.getTarget('.x-tree-checkbox', 1)) {
       this.onCheckboxUp(e, this.getNode(e));
      }
     },