treeview expandpath doesn't always call the complete function

3 posts, 0 answers
  1. Bart
    Bart avatar
    20 posts
    Member since:
    May 2014

    Posted 26 Feb 2016 Link to this post

    I'm making use of the expandPath function of the treeview, but is doesn't always call the complete function the first time, as if it doesn't do this if it takes to long or something. It works perfectly if I call the function twice but that shouldn't be the solution.

                   treeView.expandPath(arrPath, function() {
                       var getitem = treeView.dataSource.get(path);
                       var selectitem = treeView.findByUid(getitem.uid);
                       treeView.trigger('select', { node: selectitem });

    Am I missing something here what I should do different?
  2. Alex Gyoshev
    Alex Gyoshev avatar
    2527 posts

    Posted 29 Feb 2016 Link to this post

    Hello Bart,

    Can you please provide a Dojo snippet that reproduces this problem?

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Devin
    Devin avatar
    8 posts
    Member since:
    May 2015

    Posted 20 Jul 2016 in reply to Alex Gyoshev Link to this post

    I also have this problem. I'm calling expandPath in an ajax call where I end up calling it multiple times to expand multiple paths. Sometimes the complete function calls for some of the paths, sometimes not, and trying to get treeView.dataSource.get(id) fails sometimes inside the complete function even though it's not supposed to fire until the path has been expanded (and the id should be available). I am submitting a ticket since there is no solution here.
Back to Top