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

Filter Grid across all Detail Grid Rows

1 Answer 367 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 21 Dec 2015, 08:10 PM

Hello,

I am am trying to make my grid filterable for every item in each of the nested grid's columns.

My grid is set up very similarly to this demo example http://demos.telerik.com/kendo-ui/grid/hierarchy

Pretty much I want it so that if you filter by any item in the nested grid, it would filter it out in all of the other nested grids as well. Right now all of my header grid columns and detail grid columns are shared as well.

Thank You,

Justin

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 23 Dec 2015, 03:19 PM

Hello Justin,

 

It may be less likely but still if all your nested grids (detail views) are exactly the same (columns definition and data itself) you are able to define one DataSource instance and all detail grids can share that instance. In this case if one of the nested grids is filtered all other grids that use this same DataSource instance will be affected. 

 

Most probably each of the detail grids is using separate DataSource instance. When one of the grids is filtered then you have to call the DataSource filter method of each nested grid. This will set filter expression and filter the data shown in the grid. 

 

In order to get the DataSource associated with specific grid you can use the dataSource field. 

 

Regards,
Boyan Dimitrov
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
Justin
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or