Hi.. i need to call a javascript function after the node is collapsed/expanded. Is there a way to do it?
Hi,
Yes there is such a way, just register a handler like this
<ClientSideEvents NodeExpand="yourHandlerFunction" NodeCollapse="yourHandlerFunction" />
and you are ready.
No.. I want something like AfterNodeCollapsed/AfterNodeExpanded. Those events that you have mentioned are fired before expand/collapse. Correct me if i am wrong. Thanks.
ok.. but i am using Infragistics2.WebUI.UltraWebNavigator.v9.1.dll with framework2.0. I think these events are not supported in my version. I am getting Type 'Infragistics.WebUI.UltraWebNavigator.TreeClientSideEvents' does not have a public property named 'AfterRowExpanded' error. :(
wait a minute.. those links you provided are for webgrid, isn't it? Can i use grid events in webtree? if so, please provide me a simple example.
Sorry, I've made a mistake with the control.
The CSOM for WebTree is here:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html/WebTree_Client_Side_Events_CSOM.html
but I am not able to see a such client-side event.
I'd suggest you as workaround to declare global variable and depends on your logic to change its value in NodeExpanded or NodeCollapse events in this way you will be able to track which node is expanded,or just to run another function with delay ( after node have been expanded ) . window.setTimeout("yourFFunction()").
ok..i will try that. Thanks for your assistance.