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
175
Init checkbox overridden by igtree_Load event in UltraWebTree
posted

 

 

 Hallo,

I have a problem with the infragistics webTree version > 7. The version 6.2 works perfect.

I have an ultrawebtree control with checkboxes. I initialize the state of the checkboxes in the InitializeTree event with ultraWebTree_InitializeTree javascript function. I set some of the chekboxes off en some on. It seems to work, but at the end there is  this igtree_Load function called that resets the state of the chekboxes to the original state (before the call uwebtree_InitializeTree function).

The way I set the nodes: 

var node = igtree_getNodeById(nodeId);

node.setChecked(false);

Binding is done in the OnLoad event on the server

LoadOnDemand is not set

I use no AJAX ot WARP here.

Can anybody please help me?

Regards,

Adrian 

 

 

Parents
No Data
Reply
  • 28464
    posted

    Hello Adrian,

    I have a couple of suggestions:

    1. So I guess if you are doing that on the client-side in InitializeTreeView, you could probably also do it directly from the server-side with C# and/or VB.NET, right? Is this possible in your case?

    2. You can move the code the inits the checkboxes in a timeout that executes in say, 500ms. Example (call this in the InitializeTreeView client-side event handler)

    window.setTimeout(setCheckBoxes(), 500)

Children