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

Two grids on same page using one grid "excel like filter"

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
steve
Top achievements
Rank 2
steve asked on 18 Oct 2016, 11:36 AM
Is it possible to have two grids on the same page that are synced to use the first gids header menus? I am trying to use the "excel like filtering" but I am having issues with refreshing both grids from one header.

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 21 Oct 2016, 05:55 AM
Hi Steve,

A possible solution is to apply the same filter to the second grid after the first one is filtered. For this purpose you need to hook OnItemCommand event handler and when the command is filtering to get the filter expression and apply it to the second one. You can access the filter expression by using RadGrid1.MasterTableView.FilterExpression. Keep in mind you need to Rebind the grid after setting the filter expression in order the changes to be applied.

Regards,
Kostadin
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
Grid
Asked by
steve
Top achievements
Rank 2
Answers by
Kostadin
Telerik team
Share this question
or