Hello Vinit,
For the error you are getting, try adding the following line in the beginning of your gridSelectionChanged function:
On the second issue with selecting the master header checkbox, try the following modified version of the toggleSelectionRecursive function:
Finally, on your requirements, I believe almost all of this scenario can be achieved with the approach I demonstrated. I have attached a modified version of the test page that you can try at your side. Note, however, that the grid does not provide an automatic way of representing an "intermediate state" of an item where only some of the child items are selected.
Veli
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their
blog feed now.