Hi
I have a javascript function that extracts a custom attribute from a treeview node and uses this to decide whether to hide or show the expand button. This works spot on when expanding a node.
However, I also store the treeview XML in a session variable so that when user navigates back to this page the treeview will be in the same shape as they left it. I have attached a function to the treeview OnClientLoad that uses recursion to naviage through all the expanded nodes toggling the expand button as required. Again this works fine.
However - and might not be possible - when a user navigats back to the page all the nodes have an expand button until the js function runs - which is very quick - a second maybe - however this looks unprofessional as the nodes disappear down the treeview.
Is there way to get around?
As a suggestion for future releases, if I may, it would be extremely handy to be able to set this client side
I have a javascript function that extracts a custom attribute from a treeview node and uses this to decide whether to hide or show the expand button. This works spot on when expanding a node.
However, I also store the treeview XML in a session variable so that when user navigates back to this page the treeview will be in the same shape as they left it. I have attached a function to the treeview OnClientLoad that uses recursion to naviage through all the expanded nodes toggling the expand button as required. Again this works fine.
However - and might not be possible - when a user navigats back to the page all the nodes have an expand button until the js function runs - which is very quick - a second maybe - however this looks unprofessional as the nodes disappear down the treeview.
Is there way to get around?
As a suggestion for future releases, if I may, it would be extremely handy to be able to set this client side