Results 1 to 4 of 4

Thread: Treepanel expand/select issue

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    9

    Default Treepanel expand/select issue

    Ext version tested:
    • Ext 5.1.0 rev 107
    Browser versions tested against:
    • Chrome
    DOCTYPE tested against:
    • N/A
    Description:
    • This might be related to EXTJS-13133 which was fixed in 5.0.2. When using checkboxmodel as selection type in a treepanel, the rows get selected when expanding the nodes.
    Steps to reproduce the problem:
    The result that was expected:
    • Rows should not be selected when expanding nodes
    The result that occurs instead:
    • Rows get selected

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250

    Default

    It's not really intended to use the checkbox model for trees, since trees have their own selection model subclass. Regardless, you could use checkOnly: true if you only want selection via the checkbox. Otherwise, I don't really see a bug here.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User
    Join Date
    Sep 2015
    Posts
    10

    Default

    Hi,

    I am using Extjs 5.1.0

    I am using checkbox selection model within tree panel.

    when we expand the tree more than once i.e open, close and then open, the selection of the child nodes goes away.

    I am not sure if it is possible to persist the selected child nodes on expand when using checkbox model.

  4. #4
    Sencha Premium Member
    Join Date
    Jul 2010
    Posts
    1

    Default

    I am not using the checkbox. Normal / expected behavior for trees is to have the ability to expand a node without selection. This option should be configurable with the default being no selection. The fact that the selection event fires before any expand events makes implementing normal tree behavior problematic.

    Combine this with routing and you get a bad user experience.

Similar Threads

  1. Replies: 2
    Last Post: 30 Jul 2014, 8:05 PM
  2. Replies: 3
    Last Post: 9 Feb 2014, 6:41 AM
  3. Replies: 2
    Last Post: 6 Feb 2014, 12:51 PM
  4. TreePanel.getRootNode().expand() issue
    By mx_starter in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 18 Feb 2010, 5:04 AM
  5. Replies: 3
    Last Post: 17 Jul 2009, 5:59 AM

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
  •