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

Filtering on multiple columns

2 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
MS
Top achievements
Rank 1
MS asked on 25 Apr 2012, 05:12 AM
When I filter one column, then try to filter another column on the first filtered set, it does not work together. It resets the first filter and just filter with the 2nd value (column).

I set RadGrid datasource = some datatable in NeedDataSource event.

How can I make the set of filtering work?

2 Answers, 1 is accepted

Sort by
0
Accepted
Richard
Top achievements
Rank 1
answered on 26 Apr 2012, 09:48 PM
MS:

The ability to filter on one column and then refine it by setting additional filters is supported out-of-the-box, as long as you do not use the DataBind() method.

You can see this working correctly on the Grid/Basic Filtering demo. And, you can check the AJAX and grid settings against your own code.

Also, be sure to reference this forum thread for a possible cause related to your view state settings.

If this fails, you should post your code.

Regards,
0
MS
Top achievements
Rank 1
answered on 27 Apr 2012, 09:57 PM
Thank you for your advice!

Yes you are right, it was because of the View State. On the top of the aspx page,  viewstate was set false (I did not do this but someone else did).
<%@ Page Language="C#" MasterPageFile="....  EnableViewState="false" %>
Tags
Grid
Asked by
MS
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
MS
Top achievements
Rank 1
Share this question
or