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

Clearning out filtering fields in hierarchy

1 Answer 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Condorito
Top achievements
Rank 1
Condorito asked on 19 Sep 2011, 05:44 PM
Hi, I have a RadGrid that has multiple nested details tables and everything works great, except for this issue:

1.  search fields are not cleared out when moving from one record to the next.  This behavior can be seen under this demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/filteringdetailtables/defaultcs.aspx

If you type "14.40" under the Unit Price search field textbox, for record 10281, it filters by that price, but if you expand the record below it (10282), the Unit Price search textbox for that record is populated by "14.40", which makes it confusing since as an end-user it seems that the column for that particular row has been filtered by that value, and none is found, but yet records are still being displayed.  My question is, what is the best way to clear out the search fields for newly expanded records?  Thank you!

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 22 Sep 2011, 04:56 PM
Hi Juan,

Filtering settings for the columns are cloned for every detail table and this is the reason why you are seeing the "14.40" when you expand the next row. Separated filter expressions on the other hand are created for every grid table view, that is why the filtering expression is not applied, but only the value in text box is displayed. This is limitation in this type of hierarchy. You could use hierarchy with NewstedViewTemplate with RadGrid in it to overcome this limitation.

Kind regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Condorito
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or