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

apply the column filter from one grid to another

2 Answers 393 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 11 Apr 2018, 02:48 PM

Hi I have a set of 3 grids displaying financial data for a set of records - all with the same columns -

grid 1 holds the baseline monthly data,

grid 2 (editable) holds same records but the dollar amounts can be edited to what is needed in the new monthly cycle

grid 3 holds the same records but displays the variance between the values of grid 1 and 2 - currently have paging and scrolling synchronized

 

I am wondering now if there is a way to apply the grid column filter from one grid to another - i have not found this exact question answered anywhere

can someone help?

 

thanks

Jim

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 13 Apr 2018, 11:34 AM
Hi Jim,

If the fields in the different Grid components are the same you can use the following approach. Handle the Gird filter event for the relevant Grids. In the event handler get reference of the other Grid components and call filter() method for their dataSource. 

The dojo example below outlines the approach:


Give it a try and let me know how it works for you.


Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
James
Top achievements
Rank 1
answered on 13 Apr 2018, 01:13 PM
This is exactly what I need - thanks very much!
Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
James
Top achievements
Rank 1
Share this question
or