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");
                equipmentCategory.dataSource.read();

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

                var treeView = $("#equipmentCategoryTreeView").data('kendoTreeView');
                
                treeView.expand( treePath );
     
                treeView.select( 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.

    Thanks

    Arrash

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 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.

     

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top