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

Unique FilterMenu per Filter column

3 Answers 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 04 Dec 2008, 11:18 PM
2008.3.1125.35  VS2008 SP1
http://www.telerik.com/help/aspnet-ajax/grdreducingfiltermenuoptions.html

Is it correct that on the server side you can only have 1 set of filter menu for all filter columns?
How do you have different filter menu for each filter column?

On the client side, the included script and clientsettings did not work for me.   It didn't remove any menu items.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Dec 2008, 10:34 AM

Hi Lenny,

RadGrid have different filter menu options which are applied default based on the datatype used for each column. Also you can customize the filter functions. You can check following link to online documentation for more information.
Custom option for filtering (FilterListOptions -> VaryByDataTypeAllowCustom)

Thanks,
Princy.

0
Lenny_shp
Top achievements
Rank 2
answered on 05 Dec 2008, 02:25 PM
For example if I have 2 string type filtercolumn, and I want the first filtercolumn to have filters of  "Contains, Equal"   and the 2nd filtercolumn to have "IsEmpty, IsNotEmpty".   

How do I bind a different set of filter menu to the same datatype of different filter column?
The example of setting it in Page_Init would affect all the filtercolumns to have the same custom menu.
0
Sebastian
Telerik team
answered on 08 Dec 2008, 01:30 PM

Hello Lenny_shp,

For your case you will need to consider the client-side approach intercepting the OnFilterMenuShowing client event of the grid. Can you please verify that the event is raised as expected and the code which hides the filter menu options is executed? You can also view the information/code snippets from the following forum post for further reference:

http://www.telerik.com/community/forums/aspnet-ajax/grid/how-do-you-hide-filter-options-for-a-given-column.aspx

Best regards,

Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Lenny_shp
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or