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

Custom RadFilter 'IN' filter

1 Answer 81 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 20 Jan 2014, 08:59 AM
Hi,

I am trying to implement a filter from a combobox with checkboxes enabled in order to create a where clause that would look a bit like

WHERE MyId in (1,2,3,4)

I create the combobox with checkbox option on during 'OnExpressionItemCreated', but am having trouble applying the selected values to the filter.

I have tried in 'OnExpressionEvaluated' to reformat the evaluationData ExpressionFormat and Value to produce what I am looking for to no avail. I have also tried in the same method to create a group expression as a series of 'ORs', but can't figure out how to get this group expression to replace the original 'RadFilterNonGroupExpression'.

Any ideas how I could achieve my goal?

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 23 Jan 2014, 08:59 AM
Hello Adam,

I would recommend you to examine the following help articles which describes how to achieve your requirement:
Creating Custom Field Editors
Building Filter Expressions Manually

Regards,
Kostadin
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
Filter
Asked by
Adam
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or