CheckChildNodes and LoadOnDemand?

2 posts, 0 answers
  1. Doug
    Doug avatar
    1 posts
    Member since:
    Apr 2009

    Posted 08 Apr 2009 Link to this post

    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?

  2. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 14 Mar 2012 Link to this post


    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())

Back to Top