Universally Filtering TabString Grid in Kendo Grid For Asp.Net Core

1 Answer 92 Views
Grid
Sed
Top achievements
Rank 1
Sed asked on 12 Oct 2021, 12:54 PM

Hello everyone.

I have a hierarchical grid, using ClientDetailTemplate, and everything works just fine, thanks to your detailed demo.

 

But I have a problem with filtering the whole grid (both the main grid and the tabbed grids). I have an input on main grid's toolbar through which the user can filter every column with the inserted text, but in this particular grid, it only filters the main grid and not the content of tabbed ones. I was wondering is there a way to filter the whole grid?

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 15 Oct 2021, 06:06 AM

Hi Sed,

The behavior observed will be expected. The configuration supported for the Search Panel allow you to configure the columns of the DataSource that will be filtered based on the user input. In addition the Detail Grids are not rendered at initialization, but only when a master row is expanded. You can inspect the elements of the Master Grid in the Grid Hierarchy Demo and you will note that for the rows that have not yet been expanded there is no Detail Grid initialized.

That said, if you have a scenario, where you have all Detail Rows expanded and Detail Grids initialized, a possible approach that I can think of is to attach a handler to the input of the search panel to monitor for user input. You can then get a reference to all Grids on the page, iterate them and filter their dataSources using the dataSource filter method.

I hope the above suggestion helps you implement the desired functionality.

Regards,
Aleksandar
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Tags
Grid
Asked by
Sed
Top achievements
Rank 1
Answers by
Aleksandar
Telerik team
Share this question
or