Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
730
Populating child nodes by clicking on Parent node name
posted

Hi, I want to populate child nodes by clicking on parent node name.

Please tell me how to do it. By default, we have option to click on "expand image" left to parent node

 to expand child nodes. But i don't want to click on expand image but Parent node. Please help.

  • 3726
    posted

    Hi,

    I understand that you are talking about load on demand scenario. In order to do that, you have to subscribe for the NodeClick client side event and inside you can call set_expanded(true, true) ; to the node for which the click handler was invoked. If the node is not populated set_expanded() will trigger the node to populate its data first and then expand.

    Hope this helps.