In Code check and uncheck

2 posts, 0 answers
  1. Rick Knicely
    Rick Knicely avatar
    43 posts
    Member since:
    Apr 2010

    Posted 25 Jun 2010 Link to this post

    When I check and then uncheck a tree node (in code C#)  that is in tri-state mode and I have never opened all of the nodes below a common parent the nodes are not unchecked properly.

    If I open all of the nodes first manually by clicking them with the mouse then close all the nodes then do the same in code (C#) everything works fine.

    I have tried many things in code such as expanding and closing nodes, however nothing seems to work unless I have used the mouse to expand the nodes first.

    Any ideas?

    thank you,
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 01 Jul 2010 Link to this post

    Hi Rick Knicely,

    Please accept my apology for the delayed response.

    At the moment the described behavior is expected since the RadTreeViewItems are not  aware of the CheckState of their sub items until they are expanded. Therefore the CheckState of the parent items doesn't update when a sub item is checked or unchecked in code behind.

    However, I logged the issue as a feature request in our PITS under the name: TreeView: The CheckState of TreeViewItems that has never been expanded, doesn't update accordingly to the CheckState of their sub items where you can vote for it. If it gathers enough popularity we will definitely consider implementing it.

    I also updated your Telerik points accordingly.

    Best wishes,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top