Some Treeview Checkbox State Can Be Lost After Postback

2 posts, 0 answers
  1. Gary
    Gary avatar
    3 posts
    Member since:
    Jul 2008

    Posted 31 Aug 2009 Link to this post


    I have a situation where things are a little complex. I'd like to maintain some "unusual" state of the treeview checkbox. For example, I'd like to maintain the following state after postback (I write my own javascript code to set the checkbox of Node1_1_1 to "indeterminate").

    --Node1 (checked)
       --Node1_1 (checked)
          --Node1_1_1 (indeterminate)
          --Node1_1_2 (checked)

    However, when I select a node to cause a postback, the checkbox of Node1_1_1 becomes "checked".

    I know this case is unusual; but in my case, the above state makes sense. Is there a way to maintain this state after postback?

  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 02 Sep 2009 Link to this post

    Hello Gary,

    Unfortunately this is not possible. RadTreeView supports only the regular cases in which a node is indeterminate state only when some of its child nodes is unchecked.

    Atanas Korchev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top