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

FilterExpression problem when using .NET4

2 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mats
Top achievements
Rank 1
Mats asked on 20 Jan 2011, 11:41 AM
Hi!

I am in the process of moving from RadControls using .NET2 to .NET4.
The content of the GridTableView.FilterExpression has changed format between .NET2 and .NET4.
In .NET2 the FilterExpression might look like: "([Name] LIKE '%m%')"
In .NET4 the FilterExpression looks like: "(it[\"Name\"].ToString().ToUpper().Contains(\"m\".ToUpper()))"

When a user is working with a grid I am saving the grid settings including filter expressions in database to be used next time. The problem is that when loading settings (filter expression) saved with .NET2 in.NET4 I get a runtime error saying:  Sys.WebForms.PageRequestManagerServerErrorException: Expression expected

Does anyone have a solution for this?

Thanks
/Mats

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 20 Jan 2011, 12:59 PM
Hello Mats,

Try setting RadGrid EnableLinqExpressions property to false and let me know if it helps.

Best wishes,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Mats
Top achievements
Rank 1
answered on 20 Jan 2011, 01:15 PM
Hello Pavlina!

Great, it solved my problem.

Thanks
/Mats
Tags
Grid
Asked by
Mats
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Mats
Top achievements
Rank 1
Share this question
or