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
274
Remove all nodes on client side
posted

I need to have a javascript function in my ASP.Net page I can call that will:

  1. Find the WebTree control
  2. Remove all the nodes from the tree

Any help would be greatly appreciated.

Parents
  • 274
    posted

    Let me clarify. I already have some code based on the docs, but it doesn't work.

     

     

     

     

    var tree;

    tree = igtree_getTreeById(

    "<%=IncludeList.ClientID%>");  <== This yields a null object

    tree = igtree_getTreeById(

    "IncludeList");  <== This yields a null object

    tree.clearNodes(); <== doesn't work because tree is null

    The tree markup is:

    <

     

    ignav:UltraWebTree ID="IncludeList" runat="server"  .... etc

    Am I missing something?

Reply Children