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
395
Using ClientEvents to show different icon when node expanded/collapsed
posted

Hello,

i want to change the imageurl on client, if a node is expanded or collapsed. In my case i want to show a FolderClose-icon if node collapsed and a FolderOpen-icon if it is expanded. I can do that in server-side code but this causes a roundtrip to the server.

Is there a possibility to do that on client? I saw the ClientEvents NodeExpanded and NodeCollapsed but no methods to change the imageurl. Or is it possible to do that via CSS?

Thanks

Martin