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

RadGrid Filter overwriting custom filtering

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 03 Jul 2013, 12:17 PM
Hi,

I have a filter template which is using my own custom filter, this is setup in the item command. After this event Telerik build up the rest of the filter expression by looping through the columns. I need this loop to exclude the column that I have already built the filter expression for.

The custom filter template is a combobox with check boxes. I convert the comma separated string into OR conditions in the grid filter expression. For example 'cup, plate, glass' gets converted to "(([category] = 'cup') OR ([category] = 'plate') OR ([category] = 'glass') )" which is correct, however after the item command event the value from the filter control is automatically used for my column with the custom filter so the filter expression becomes "(([category] = 'cup') OR ([category] = 'plate') OR ([category] = 'glass') ) AND ([category] = 'cup,plate,glass')". This occurs when I filter another column when a filter already exists for my custom column.

Can I exclude my column from the in-built filtering but keep my custom filtering?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 08 Jul 2013, 10:43 AM
Hello Matt,

You can check out the following example to achieve the requested functionality:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/multi-selection-radcombobox-for-filtering-grid.aspx#2351833

Please note that our developers are currently working on an in-built version of multi-value filtering and it is expected to be introduced in one of the upcoming releases.

Hope this helps.

Regards,
Eyup
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or