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

Add a new filter option

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kai
Top achievements
Rank 2
Kai asked on 14 Mar 2012, 04:49 PM
Hi all,

in RadGrid, is it possible to add another filter option next to the existing filters? I have a column with several categories, let's say countries. Here is a good example on your demo page. Problem is: My countries are sorted in Categories, e.g.
  • Africa
    • Egypt
    • South Africa
  • Europe
    • Denmark
    • France
    • Italy
  • etc

So I could not use a simple dropdown list. I hope it's possible to use RadTreeView with checkboxes?
Problem is: I don't want to replace the existing filter. It should still be possible just to enter e.g. 'Den' and select 'Contains' as a filter. Additionally it should be possible to click on another filter icon and then RadTreeView opens showing all available options? Would that work?
I've also seen that it's possible to filter with RadFilter. This might also be an option but currently I think it's not very self-explaining for unexperienced users so I would really prefer to have an additional filter option icon in the filter row.
Many thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Accepted
Radoslav
Telerik team
answered on 19 Mar 2012, 09:22 AM
Hello Kai,

Unfortunately we do not support mixing default column filtering with custom one.
In order to implement the desired functionality, I recommend that you use the Filter Templates feature of the RadGrid. It provides a straight-forward approach to enable dropdown filters for GridBoundColumns (or those columns which inherit from GridBoundColumns like GridDateTimeColumn, GridNumericColumn, etc.) and GridTemplateColumns declaratively.
Also you could check out the following code library which demonstrates how to filter RadGrid with Multi-Selection RadComboBox:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/multi-selection-radcombobox-for-filtering-grid.aspx

I hope this helps.


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