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

[Solved] custom filtering

1 Answer 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
krishna surapaneni
Top achievements
Rank 2
krishna surapaneni asked on 27 Feb 2010, 07:38 AM
Dear Support,

I want to craete custom filter for only  one column in  grid.I am not using need data source .binding data with dataset .
Status column may or may not be in my dataset.if exists ,i want to create custom filter for status column .Pls tell me how find Filtermenu of that status column?
i checked with below code.but menu items are applying for all columns.

GridFilterMenu

 

filterMenu = RadGridStudies.FilterMenu;

 

 

RadMenuItem menuItem = new RadMenuItem();

 

RadGridStudies.FilterMenu.Items.Add(menuItem);

menuItem.Text =

"Online";

 

menuItem.Value =

"Online";

 

filterMenu.ItemClick +=

new RadMenuEventHandler(filterMenu_ItemClick);

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Mar 2010, 01:24 PM
Hi,

You can intercept  the OnFilterMenuShowing client event of the grid and access the menu to add the custom  menu item .
Please also  take a look at the following link which discusses on similar lines:

Hope this helps.

Thanks
Princy
Tags
Grid
Asked by
krishna surapaneni
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or