This is a migrated thread and some comments may be shown as answers.

CheckChildNodes and LoadOnDemand?

1 Answer 73 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 08 Apr 2009, 03:53 PM

Suppose you have a treeview with CheckBoxes and CheckChildNodes set, and you are using LoadOnDemand.

The user clicks on a checkbox for a parent node whose children have not yet been loaded.

What happens?  Are the child nodes loaded?  If not loaded, is the altered checked state of the child nodes nevertheless transmitted to the server upon postback?

1 Answer, 1 is accepted

Sort by
0
msigman
Top achievements
Rank 2
answered on 14 Mar 2012, 06:59 PM
Doug,

I realize your post is 3 years old, but I wanted to provide an answer in the hopes that it helps someone else.

By default, it would not expand them.  However, that behavior is easily accomplished:
function clientNodeChecked(sender, eventArgs)
        {
            var node = eventArgs.get_node(); 
 
            if (node.get_checked())
            {
                node.expand();
            }
        }

Tags
TreeView
Asked by
Doug
Top achievements
Rank 1
Answers by
msigman
Top achievements
Rank 2
Share this question
or