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

2013 Rad Grid parser error on Databind

2 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
umesh
Top achievements
Rank 1
umesh asked on 20 Feb 2014, 02:41 PM
Hi,
    I got licensed version of 2013 Rad Grid. While it works fine in a test project. When I use the same demo code, On databind, in my application, I get an exception like below. I checked and rechecked any differences between the demo project and my application. There seems to be no difference at all. I used the same dummy datasource like in the Demo project, still I get the error. Any help is appreciated.

Telerik.Web.UI.ParseException: Syntax error '#'    at Telerik.Web.UI.ExpressionParser.NextToken()     at Telerik.Web.UI.ExpressionParser..ctor(ParameterExpression[] parameters, String expression, Object[] values)     at Telerik.Web.UI.DynamicExpression.ParseLambda(ParameterExpression[] parameters, Type resultType, String expression, Object[] values)     at Telerik.Web.UI.DynamicExpression.ParseLambda(Type itType, Type resultType, String expression, Object[] values)     at Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values)     at Telerik.Web.UI.GridDataTableFromEnumerable.FillData35()     at Telerik.Web.UI.GridDataTableFromEnumerable.FillData()     at Telerik.Web.UI.GridResolveEnumerable.Initialize()     at Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized()     at Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)     at Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)     at Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)     at Telerik.Web.UI.GridTableView.get_ResolvedDataSource()     at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)     at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)     at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)     at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)     at System.Web.UI.WebControls.DataBoundControl.PerformSelect()     at Telerik.Web.UI.GridTableView.PerformSelect()     at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()     at Telerik.Web.UI.GridTableView.DataBind()     at Telerik.Web.UI.RadGrid.DataBind()     at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)     at Telerik.Web.UI.RadGrid.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

2 Answers, 1 is accepted

Sort by
0
umesh
Top achievements
Rank 1
answered on 20 Feb 2014, 02:46 PM
To add more to the problem, it happens on a simple databind and advanced databind. Both tested independently. Note: I have an GridView control on the same aspx page which loads fine.
0
Pavlina
Telerik team
answered on 25 Feb 2014, 04:32 PM
Hello,

Please try to set EnableLinqExpressions property of RadGrid to false and check whether this eliminates the exception.

In case the error still persist I will ask you to send us your grid declaration and the related code behind, so we can get better understanding of your scenario and advice you further.

Regards,
Pavlina
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
umesh
Top achievements
Rank 1
Answers by
umesh
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or