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

Unable to use filterExpression of gridview for my custom DataTable

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anil Kini
Top achievements
Rank 1
Anil Kini asked on 22 Jul 2011, 12:55 PM

I was using gridview of Q3 2009 release, which was providing me the filterExpression  like we use to filter in datatable.
Now i have upgraded to Q1 2011 release , and now the GridView is returning FilterExpression in some other format.
This broke my code. Can anyone tell me , how to resolve this?

 

e.g. this i am getting as filterExpression :
  
 (it[\"fieldName\"].ToString().Contains(\"H\"))

    It should be as following :

 fieldName LIKE '%H%'
 

 

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 25 Jul 2011, 10:03 AM
Hello Anil,

Set the grid EnableLinqExpressions property to false.

Kind regards,
Iana
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Anil Kini
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or