This is a migrated thread and some comments may be shown as answers.

Refresh Detail Grid

2 Answers 220 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 19 Jul 2016, 10:45 AM

Hi,

I am using multi row drag & drop Grid Feature. I have 2 grids, first contains master detail grid (#grid1) and second grid (#grid2) contains list of items. I am able to select multiple rows from grid2 and drop to grid1 as master successfully. My requirement is to add selected rows from grid2 to grid1 as child to one of the row. Once data is dropped to grid 2, how to refresh the detail grid?

 

Thanks,

Sanjay

2 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 21 Jul 2016, 06:43 AM
Hi Sanjay,

If I understand correctly, you need to update the data in the second Grid when you select an item in the first one. If that is the case, you can handle the select method of the first Grid and change the data source of the second one through its setDataSource method for example.

Another option would be to call the fetch method of the second grid.

If none of the approaches help, please provide a dojo example with your scenario, so we can provide more relevant to suggestions.


Regards,
Konstantin Dikov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Sanjay
Top achievements
Rank 1
answered on 21 Jul 2016, 06:47 AM
Thanks Konstantin, Used grid.refresh() and its working.
Tags
Grid
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Sanjay
Top achievements
Rank 1
Share this question
or