urgent problem expanding tree and select child node

2 posts, 0 answers
  1. Luis
    Luis avatar
    6 posts
    Member since:
    Sep 2015

    Posted 25 Jul 2016 Link to this post

    Hello I'm trying to load a load-on-demand treeview on document.ready and trigger the select event of a child node according to a path like shows this jsbin:
    The problem in my case is that exist child nodes that have the same id as parents, because are two different entities, so in those cases the parent is expanded but the children that I want to select and trigger the select event is not selected. I guess because the method get in the datasource returns the first node that match the id.
    The problem is in this part of the code in the jsbin example because in the case of the path [1,1] for example it expands the parent node but not the children with id 1 and i want to trigger the select event of the children node. In the other cases for example with path [1,2] the treeview is expanded and the select event of the child node with id = 2 is triggered correctly
     else {
            // otherwise select
            node = treeview.findByUid(ds.get(path[0]).uid);
            treeview.trigger("select", { node: node });
    Maybe someone can modify the JSbin example to reflect my case please?
    Thank you
  2. Peter Milchev
    Peter Milchev avatar
    291 posts

    Posted 27 Jul 2016 Link to this post


    There is already an answer in another thread with the same subject. To avoid possible duplication I would suggest you to continue the communication in the other thread

    Peter Milchev
    Telerik by Progress
    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 Feedback Portal and vote to affect the priority of the items
Back to Top