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

Ragrid Custom Paging & Filtering

0 Answers 24 Views
Getting started with ASP.NET
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 16 Apr 2012, 03:10 PM
I'm trying to get custom paging and filtering working without using the asp.net markup data sources (every Telerik example I've seen uses these).

I'm binding the data source in the OnNeed data source event where I use RadGrid_EditData.MasterTableView.FilterExpression to get the complete filter expression in this kind of form:

"(iif(SourceTable == null, \"\", SourceTable).ToString() = \"Contact\") AND (Clear = True)"

I need to parse this to produce an SQL statement.  Is there an easier way to get the filter expressions (there could be more than one).

The examples I've seen use the ItemCommand event to grab the last changed filter, but I need to get all filter expressions in the NeedDatasource event.

No answers yet. Maybe you can help?

Tags
Getting started with ASP.NET
Asked by
David
Top achievements
Rank 1
Share this question
or