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

[Solved] Coordinating two grids

3 Answers 557 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JSON
Top achievements
Rank 1
JSON asked on 16 Sep 2014, 01:30 AM
I have a spec where we have a set of tabs. In these tabs are two kendo grids that have some overlapping data and essentially need to be coordinated. If Grid A in tab A is filtered, Grid B in tab B needs to be filtered similarly. Likewise if a row in Grid A is selected, that same row in Grid B needs to be selected. Is this possible with the kendo grid system? I already have it wired up for changes in data thanks to the Observable Object.

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 17 Sep 2014, 03:33 PM
Hello Joe,

I assume that the two Grids are bound to different DataSource instances. In such case you should manually handle the coordination by using the Grid/DataSource events and API methods.

More specifically you will need the filter and select method as well as the dataSource's change event and Grid's change event.

I hope this information will help.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
JSON
Top achievements
Rank 1
answered on 17 Sep 2014, 07:50 PM
They're actually bound to the same data source. 
0
Alexander Valchev
Telerik team
answered on 18 Sep 2014, 09:09 AM
Hello Joe,

If they are bound to the same DataSource the filter should automatically take effect in both Grids. In such case you will have to handle manually only the select synchronization using the approach described below.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
JSON
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
JSON
Top achievements
Rank 1
Share this question
or