This is a migrated thread and some comments may be shown as answers.
Reload the grid to the selected node
1 Answer 19 Views
This is a migrated thread and some comments may be shown as answers.
Arrash
Top achievements
Rank 1
Arrash asked on 01 Jun 2015, 04:07 PM

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

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 03 Jun 2015, 07:18 AM

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!
 
Asked by
Arrash
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or