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
560
Controling post back when node is expanded
posted

Hi,

 We are currently in process of upgrading our application from Infragistics 3.5 version 10.3 to Infragistics 3.5 version 12.2. Currently I'm having trouble with canceling post back on client side when user expands node. In older version when page was loaded for first time, tree was populated with root node and root’s first level children. When one of the child nodes was expanded, NodeExpanded client and server side events were triggered. In client event we would check if node has children and if it has children we would cancel post back. If node didn’t have children post back would occur and server side NodeExpanded event would occur where we would append children to that node.

This is a javascript code for older version which am I trying to replicate

function OnNodeExpand(treeId, nodeId)

{

      var tree = igtree_getTreeById(treeId);

      if (tree == null || tree.CancelPostBack == null)

            return;

      var node = igtree_getNodeById(nodeId);

      if (node != null)

      {

            var child = node.getFirstChild();

            if (child != null)

            {

                  var tag = child.getTag();

                  if (tag != null)

                        tree.CancelPostBack = true;

            }

      }

}

 

Is there any way to control AutoPostBackFlags NodeExpanded on client side for WebDataTree control?