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

Filtering on Detail Grid

3 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Elliott
Top achievements
Rank 2
Elliott asked on 15 Oct 2012, 02:51 PM
I maintain a web page with a 2 tier grid
the second tier contains a column that needs a filter on
I would appreciate any suggestion on how to implement this functionality
a drop-down on the top, but what to do on the selected index changed event handler

thanks

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 18 Oct 2012, 08:23 AM
Hello Marianne,

Thank you for contacting us.

You could use a GridDropDownColumn which will generate a RadComboBox for its filter item cell, or declare a FilterTemplate as demonstrated in the following demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx

I hope this will prove helpful. Please let us know if you need further assistance.

Kind regards,
Eyup
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.
0
Elliott
Top achievements
Rank 2
answered on 18 Oct 2012, 12:53 PM
helpful, maybe
but the problem was more complicated than the demo example
the grid has 2 tiers - and the column to filter by is on the inner view
how do I preserve the selection through multiple calls to Need DataSource?
the values of the outer view won't be a range of dates - but a list of key values corresponding to the inner rows that satisfy the dropdown value
0
Eyup
Telerik team
answered on 22 Oct 2012, 11:14 AM
Hi Marianne,

I am afraid we are not able to replicate the issue just by the provided information so far. Could you please verify that you have added the following property?
<telerik:RadComboBox ... SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("ColumnUniqueName").CurrentFilterValue %>'>

If the problem remains, please open a support ticket and send us a sample runnable application demonstrating the erratic behavior. Or provide us the exact steps to reproduce the issue. Thus we will be able to further analyze the issue and provide a proper solution.

Greetings,
Eyup
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
Elliott
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Elliott
Top achievements
Rank 2
Share this question
or