Results 1 to 2 of 2

Thread: TreePanel double click expands not expansible node

    You found a bug! We've classified it as EXTJS-5863 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Vote Rating

    Default TreePanel double click expands not expansible node

    REQUIRED INFORMATION Ext version tested:
    • Ext 4.0.7

    Browser versions tested against:
    • FF 11
    • IE9

    • When making a tree with a node with children, and setting the parent to Collapsible = false, expandable= false,expanded= false, double clicking the node still expands the node

    Steps to reproduce the problem:
    • Make a tree with a node with childnodes, make node expanded: false,expandible:false,collapsible: false, double click node

    The result that was expected:
    • Node not expanded

    The result that occurs instead:
    • Node did expand

    Test Case:
        var store = Ext.create('', {
        root: {
            //expanded: true,
            children: [
                { text: "detention", leaf: true },
                { text: "homework", leaf:false, expanded: false,
                expandable: false,
                collapsible: false, children: [
                    { text: "book report", leaf: true },
                    { text: "alegrbra", leaf: true}
                ] },
                { text: "buy lottery tickets", leaf: true }
    Ext.create('Ext.tree.Panel', {
        title: 'Simple Tree',
        width: 200,
        height: 150,
        store: store,
        rootVisible: false,
        renderTo: Ext.getBody()
    I've added a listener to the treestore:
    store.addListener("beforeexpand",this.beforeExpand, this);
    In the handler I check if the node can expand, if not: return false, otherwise return true. This works.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Thanks for the report.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts