Leveraging Both client and server side event

2 posts, 1 answers
  1. NLV
    NLV avatar
    87 posts
    Member since:
    Aug 2009

    Posted 22 Jan 2010 Link to this post

    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
  2. Answer
    NLV
    NLV avatar
    87 posts
    Member since:
    Aug 2009

    Posted 22 Jan 2010 Link to this post

    Fixed it. Simple. Used the CheckChildNodes property.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top