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

Custom filtered datasource

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Járai
Top achievements
Rank 1
Járai asked on 05 Apr 2011, 10:35 AM
We have the following scenario: the grid's datasource comes from some business layer function, which filters the data based on the column filters. But some columns are too long, and we trim them. But if matched string is trimmed, than that row won't show up, because the grid does an internal filtering. Is there any way to turn off this internal filtering? I mean a property like "AllowCustomFiltering". I know that clearing the FilterExpression string does the trick, but in order to preserve the filtering on the UI, this string needs to be reassigned after DataBound. (There are many pages using RadGrid, and it would be a pain to hand-implement this save/load trick, and anyways, there is no reason that the grid should apply filtering as our business functions do it).


So, I'm looking for a built-in method to turn off the internal filtering of RadGrid, but still preserving the filter controls behavior on the UI.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 08 Apr 2011, 09:38 AM
Hello Csaba,

I am afraid that RadGrid does not provide such functionality. If you turn on the build-in filtering mechanism then you will have to manually implement the required logic. For example you can cancel the default filter command, rebind the grid to the filtered data source, and finally reapply the filter function and filter value to the column(s) filtering controls.

I hope this helps.

Best wishes,
Martin
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
Járai
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or