This is a migrated thread and some comments may be shown as answers.

Leveraging Both client and server side event

1 Answer 31 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
NLV
Top achievements
Rank 1
NLV asked on 22 Jan 2010, 05:01 PM
Hello,

I've a requirement to implement. I've a tree control with 3000 nodes in it with each node having x child nodes. Now my requirement is that if i uncheck a particular node i want to uncheck all its child nodes. I dint want a postback for that. So i wrote the client side event to do that. But if the child nodes exceeds some 1000 nodes the javascript is not able to handle it and the browser throws error such as "Scripts are continuously running" (dont know the exact error message).

So what i want is that if the selected node's child node is less than 50 (arbitrary) then the event should be handled in the client side and if not then the event should be handled in the server side.

How can i achieve this? Can you give me some sample code for this?

Thank you.
NLV

1 Answer, 1 is accepted

Sort by
0
Accepted
NLV
Top achievements
Rank 1
answered on 22 Jan 2010, 08:17 PM
Fixed it. Simple. Used the CheckChildNodes property.
Tags
TreeView
Asked by
NLV
Top achievements
Rank 1
Answers by
NLV
Top achievements
Rank 1
Share this question
or