Results 1 to 5 of 5

Thread: Issue selecting checkboxes tree for more than 1000 nodes, after upgrading from 4.0.7

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    12
    Answers
    1

    Default Issue selecting checkboxes tree for more than 1000 nodes, after upgrading from 4.0.7

    I have requirement where in I have created a checkbox tree with more than 800 child nodes.

    ExtJS 4.0.7
    While I select the checkbox of the top most node of the tree entire nodes in the tree used to get selected Successfully

    ExtJS 4.2.2
    Selecting the topmost node of the tree, its taking very long time and all the nodes gets selected but it throws java script error.

    Browser
    Consistent behaviour in all the browsers (tested in IE, Mozilla , Chrome)

    Is the issue familiar?
    Can somebody brief me about the changes to the checkbox tree widget which has been integrated post 4.0.7 which could have caused the issue?

    ext.png

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    That's quite a lot of nodes. Are you doing anything unusual on checkchange, and does it help to suspend the layout while it renders?

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    12
    Answers
    1

    Default

    I didn't face issue loading large number of nodes in ExtJS 4.0.7, its only after upgrading to 4.2.2 with same set of code I am facing this issue.
    Tree node creation in 4.0.7 and 4.2.2 are different as shown in the images, I am wondering if the script error has something to do with it.
    Please advise.

    ExtJS 4.0.7
    ext1.png
    ExtJS 4.2.2ext2.png

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    The error just indicates that the page is running slowly and the browser wants to know if it should continue. You might try suspending the layout before effecting the change, just to see if that helps.

  5. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    12
    Answers
    1

    Default

    Let me clarify if the issue is not explained clearly.

    Our business rule requires to check/uncheck all the child nodes on parent node check/uncheck. Hence we programmatically did this by iterating the child nodes and setting check property of the child node as true or false(childNode.set("checked",true)). This code was working fine with ext 4.0.7. However after upgrading to 4.2.2 noticed that it is broken. After detail analysis we suspect that the issue is in onUpdate() function of tree view, which takes more time.

    We need to go ahead with 4.2.2 due to some feature support in our application. Appreciate quick solution for this.

Posting Permissions

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