why cant we have set_checkedState

2 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 24 Feb 2010 Link to this post

    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.
  2. Dimitar Milushev
    Dimitar Milushev avatar
    555 posts

    Posted 26 Feb 2010 Link to this post

    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.
Back to Top