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

UncheckAllNodes Method

4 Answers 52 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Nadia
Top achievements
Rank 1
Nadia asked on 19 Jul 2010, 06:53 AM
Hi,

How can I access this method for RadTreeView. It seems that I've got only "CheckAllNodes"?
http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.radtreeview-uncheckallnodes.html


Thanks, Nadia

4 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 19 Jul 2010, 04:36 PM
Hello Nadia,

In the ticket info I see you are using a RadTreeView for ASP.NET AJAX. Is that true?

Actually there is method UncheckAllNodes() but it is available for the classical RadTreeView - not ASP.NET AJAX version. In this help topic you can see how to check/uncheck all child nodes.

All the best,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nadia
Top achievements
Rank 1
answered on 20 Jul 2010, 12:44 AM
Yes, I'm using ASP.NET AJAX to uncheck from server-side, not from client side. Is there any methods to do that?

Thanks, Nadia
0
Shinu
Top achievements
Rank 2
answered on 20 Jul 2010, 09:12 AM
Hello Nadia,


One suggestion is calling the same method described in documentation from server code by passing the node Text as parameter. And in the client function, get the corresponding node by using findNodeByText() method and then follow the same logic to 'check/uncheck' child nodes.

Go through the blog to get help in "Executing JavaScript function from server-side code".


Hope this helps,
Shinu.
0
Veronica
Telerik team
answered on 20 Jul 2010, 09:28 AM
Hello Nadia,

After further testing I figured that there is method ClearCheckedNodes() for the Q1 SP2 . At this moment this will be helpful for you.

If you upgrade to the Q2 version you can use the UncheckAllNodes() as it is valid only for latest version.

Hope this helps.

Regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Nadia
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Nadia
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or