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

Filtering Child Grid

4 Answers 206 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sheraz Naseeb
Top achievements
Rank 1
Sheraz Naseeb asked on 13 Sep 2010, 01:44 PM
Hi Telerik Team,

I am using hierarchy grid, in which I am setting the datasource as a dataset. In the dataset I have almost 250 rows in the main grid and more than 20,000 under each of these 250 rows as child rows. My problem is if I expand the first row and use filtering row to filter in the first child grid to filter the rows according to the given criteria. It filters for all of the child rows according to the same criteria.

I want to change this behaviour that if I am searching data in a specific child grid it should limit only to that child grid not all of them.

Please advice how can I achieve this behaviour.

Many thanks,

Sheraz

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 14 Sep 2010, 12:28 PM
I'm not sure if you can do that (hopefully telerik will tell you it's possible) but the the data under each of the parent rows is linked to one child template, and therefore when you add a filter to one of the children you are adding the filter to the child template. this is why you are seeing the filter apply over all the children, regardless of which parent the child row has. 
Richard
0
Jack
Telerik team
answered on 16 Sep 2010, 04:14 PM
Hi Sheraz,
 
Like Richard said, this is not possible. The reason is that all child views belong to the same template and the filtering operation applies on all views. Currently there is no way to do this using RadGridView. 

Should you have other questions, do not hesitate to ask.

Kind regards,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Paul
Top achievements
Rank 1
answered on 15 Jul 2013, 03:02 PM
Hi there,

Just wondering if the response to this thread is still the same for the latest release?

I have tried this using the Hierarchy First Look Demo in the Q2 2013  release - when filtering a child grid, the filter is applied to all child grids. The same applies for sorting.

Is there currently any way to only apply a filter / sort to a single child grid?

Thanks,

Paul.
0
Paul
Telerik team
answered on 18 Jul 2013, 11:22 AM
Hello Paul,

Thank you for writing.

I can confirm that the way the filtering functionality works is still on a template level and in fact the control architecture relies on this structure, hence it is not possible to achieve the desired behavior.

Please do not hesitate to contact us should you have further questions.

Regards,
Paul
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Sheraz Naseeb
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Jack
Telerik team
Paul
Top achievements
Rank 1
Paul
Telerik team
Share this question
or