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

why cant we have set_checkedState

1 Answer 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 24 Feb 2010, 08:30 PM
I have seen earlier post here where the developer wanted such function but your reply was that is not possible. Why can't we have this?

Take this scenario:

> I have two trees, both Load On Demand, using Web Service - so when expanded, the nodes are loaded.
> Based on selection in one tree, I need to check nodes in another tree via javascript only (not server side)
> Now, the node that I want to check may not exist in the another tree, because its parent is not expanded and its not loaded
> I can expand parent node first, but then I have to wait till the response is back, and then only I can find the node to check it;
> If I can turn the parent node to Intermediate state then I don't have to load all children via javascript and don't have to wait. This can be done via set_checkedState if it was available
> If not possible, then how do I know when the child nodes are loaded via web-service? is there some event that gets generated?

Let me know if you have some approach in mind for this scenario.

1 Answer, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 26 Feb 2010, 01:32 PM
Hi Piyush,

As already mentioned, it's not possible to set the state directly to Intermediate since this state is calculated dynamically.

The client-side event that you need is OnClientNodePopulated.

Sincerely yours,
Dimitar Milushev
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
Piyush Bhatt
Top achievements
Rank 2
Answers by
Dimitar Milushev
Telerik team
Share this question
or