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
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)
Hello Rumen,
Thanks for your sugestions. I did number 1 already, but this is a general problem, I need to set the checkboxes depending on some values that are set in an iframe which I can't control on the server.
I'll try you 2nd suggestion as well but I am not happy with this kind of solutions.