Viewstate and TriStateCheckboxes

2 posts, 1 answers
  1. Carsten Koster
    Carsten Koster avatar
    25 posts
    Member since:
    Sep 2006

    Posted 21 Oct 2008 Link to this post

    Hello telerik folks,

    how do i access the check-status off nodes from a RadTreeView(RTV) with disabled viewstate. I found that in the params-collection there is a serialized array which only gives me the hierarchyindex of a node and not the state, in terms of a tristate checkbox.

    I tried to get the nodes by using RTV.Nodes[firstIndex].Nodes[secondIndex].Nodes[thirdIndex] but it seems that some hierarchy-indices do not follow that pattern e.g. there are nodes with values much higher than the nodecount currently available, "0:0:9" but there are only 4 nodes on the third level of node "0:0".

    I also need to find out how to find out which nodes are really selected and which are only "selected" because there exist selected subnodes. (Tristate and checkChild are active)

    Asynch Postbacks (Callbacks) for every checked node are no option as the user is allowed to batch-de/select nodes (0-1000 nodes).

    Thank you for your time.
  2. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 24 Oct 2008 Link to this post

    Hi Carsten Koster,

    You can check the CheckState property of Nodes, which can have three possible values:
    • Checked
    • Unchecked
    • Indeterminate
    Please see the attached page as an example.

    Sincerely yours,
    Simon
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top