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

[Solved] [ParseException: ')' or ',' expected]

1 Answer 299 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stuart Judd
Top achievements
Rank 1
Stuart Judd asked on 16 Oct 2009, 05:54 AM
Has anybody else got this error when using the RadGrid.
This line fixes the problem but creates new problems
RadGrid1.EnableLinqExpressions = false;

This style of code continues to work
           GridBoundColumn boundColumnCompany;
            boundColumnCompany = new GridBoundColumn();
            RadGrid1.MasterTableView.Columns.Add(boundColumnCompany);
            boundColumnCompany.DataField = "CompanyName";
            boundColumnCompany.HeaderText = "Store Name";
            boundColumnCompany.Aggregate = GridAggregateFunction.None;
            boundColumnCompany.ShowFilterIcon = true;
            boundColumn.HeaderStyle.Width = 120;
but GridCalculatedColumn stop working
            GridCalculatedColumn calculatedColumnRepeater;         
            calculatedColumnRepeater = new GridCalculatedColumn();
            RadGrid1.MasterTableView.Columns.Add(calculatedColumnRepeater);
            calculatedColumnRepeater.HeaderText = "<b>" + question.GroupBy + "</b><br/>" + question.DisplayText;
            calculatedColumnRepeater.ShowFilterIcon = false;
            calculatedColumnRepeater.HeaderStyle.VerticalAlign = VerticalAlign.Top;
            calculatedColumnRepeater.Aggregate = GridAggregateFunction.Custom;
            calculatedColumnRepeater.DataFields = question.Fields.Split(new char[] { ',' });
            calculatedColumnRepeater.Aggregate = GridAggregateFunction.Custom;
            calculatedColumnRepeater.Expression = question.AggregrateFormulae;
            calculatedColumnRepeater.DataType = new System.Double().GetType();
            calculatedColumnRepeater.DataFormatString = question.DisplayString;

i need to set EnableLinqExpressions to true so i can drag columns into the group by box which stops working once i disable this line.

Cheers


1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 21 Oct 2009, 07:43 AM
Hello Stuart,

Based on the supplied information, it is hard to determine what is causing this exception.
To further track the problem, please open a formal support ticket, and send us a small working project, demonstrating your logic, and showing the exception. We will debug it locally, and get back to you with additional information.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Stuart Judd
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or