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

creating custom filter in RadGrid

1 Answer 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rashad kabbara
Top achievements
Rank 1
rashad kabbara asked on 01 Jul 2010, 09:48 AM
how can i create a custom RadGrid Filter?
in other words i have a gridview, and i want to create a custom Filter on a certian GridBoundColumn. i know that i should use this:

<

 

telerik:GridBoundColumn DataField="ID" HeaderText="ID"

 

 

<FilterTemplate>

 


</

 

FilterTemplate>

 

 

</telerik:GridBoundColumn>

but lets say i have a listbox inside the above filterTemplate. how can i add the FilterButton (that shows equalto,notequalto.... when clicked) so a user can choose an item from the listbox, and filters accordingly.

i have already seen this link:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx
but this link adds a dropdownlist to the GridBoundColumn Filtertemplate, but it filters when the selectedValue of the dropdownlist changes. what i need is the same filterButton that appears by default (that contains the filter criteria when selected)

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 05 Jul 2010, 03:02 PM
Hi Rashad,

For more information about how to achieve the desired functionality you could examine the help articles  below:
Custom filter options with handling
Custom option for filtering (FilterListOptions -> VaryByDataTypeAllowCustom)

Regards,
Pavlina
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
Tags
Grid
Asked by
rashad kabbara
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or