Reload the grid to the selected node

2 posts, 0 answers
  1. Arrash
    Arrash avatar
    6 posts
    Member since:
    Jun 2011

    Posted 01 Jun 2015 Link to this post

    Hi there,

     Is there a way to go back to the same node which was last updated in the grid. 

     function refreshEquipmentCategories() {
                var equipmentCategory = $("#equipmentCategoryTreeView").data("kendoTreeView");

                var selected = $('#selectedEquipmentCategoryPath');
                var treePath = $('#selectedEquipmentCategoryPath').parentsUntil(equipmentCategoryTreeView, "li");

                var treeView = $("#equipmentCategoryTreeView").data('kendoTreeView');
                treeView.expand( treePath );
       selected );
                treeView.trigger( 'select', {node: selected} );

     The above doesn't seem to work correctly. Even though the all the nodes gets expanded after refresh, but the current doesnt seem to get selected( highlighted).


    Any help would be greatly appreciated.



  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2123 posts

    Posted 03 Jun 2015 Link to this post

    Hello Arrash,



    I covered the question in the support thread on the same topic. Since the provided sample code looks correct, we will need small runnable project in order to inspect it.


    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top