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

[Solved] How to set FilterExpression on ClientSide

2 Answers 268 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris Messineo
Top achievements
Rank 1
Chris Messineo asked on 16 Apr 2009, 09:03 PM
Hi All,

On the server side I used to set the FilterExpression like:

RadGrid1.MasterTableView.FilterExpression = "some expression";

How do I achieve this on the client side?

If I use this method on the client side:
tableView.filter("ClientID", clientID, Telerik.Web.UI.GridFilterFunction.Equal);

the filter works, but when I use this method:

tableView.get_filterExpressions()

I don't get an expression, it comes back blank.

Any help would be appreciated.

Thanks







2 Answers, 1 is accepted

Sort by
0
Chris Messineo
Top achievements
Rank 1
answered on 17 Apr 2009, 09:24 PM
I guess this can't be done.  I have to do this because I'm using a drop down FilterTemplate.
0
Iana Tsolova
Telerik team
answered on 21 Apr 2009, 01:04 PM
Hi Chris,

Indeed, calling the filter method on the client as you did is the proper approach to invoke the grid filtering on the client.
Please make sure that the arguments you pass in the method are the right ones:
  • first parameter is the column UniqueName
  • second parameter should be the filter value
  • third parameter is enumeration value, the filter function 

Find more about the preceding client-side method here.

All the best,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Chris Messineo
Top achievements
Rank 1
Answers by
Chris Messineo
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or