Results 1 to 3 of 3

Thread: 3.3.x toggleCheck on TreeNodeUI only works if the node has been rendered?

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    79

    Default 3.3.x toggleCheck on TreeNodeUI only works if the node has been rendered?

    Hi,

    I'm loading a tree and mark specific items as checked before the tree is displayed. However, it seems that toggleCheck only works if the node already has been rendered.

    This should be fixed to support checking TreeNodeUI works without being rendered.

    If this is already fixed for 4.0, perfect

    Thanks,
    Timo

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    This is more a feature request than a bug report. 'toggleCheck' was never meant to be used as generic 'setChecked' method.

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    79

    Default

    I disagree that this is a feature request. The documentation for TreeNodeUI.toggleCheck() does not indicate that this method was never meant as a generic setChecked() method.

    In fact, even if this was never meant as a setChecked method and if you removed it, you would make things even worse, as there would be no way to manipulate the tree before it is rendered. TreeNodeUI.toggleCheck() should work as documented.

    Additionally, a feature request would be to add a setChecked() method, which might not check the box directly, but rather some checked property so it can be displayed correctly when rendered.

Similar Threads

  1. Custom TreeNodeUI to wrap and indent node text
    By jjulian in forum Community Discussion
    Replies: 1
    Last Post: 2 Mar 2010, 11:05 PM
  2. Replies: 8
    Last Post: 29 Jan 2009, 5:51 AM
  3. [1.1.1] TreeNodeUI toggleCheck() issue
    By sjivan in forum Ext 1.x: Bugs
    Replies: 7
    Last Post: 9 Feb 2008, 8:10 PM

Posting Permissions

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