Hi,
we have encountered a problem with the GridCalculatedColumn and EnableLinqExpressions = false where we receive an Exception on every PageLoad
Minimal Test Case:
source.xml
This yields the Exception:
Server Error in '/Example' Application.
Exception Details: System.ArgumentException: Cannot remove this column, because it is part of an expression: column = value1 + value2.
Source Error:
Stack Trace:
Using Telerik Q2-2012-SP2 (2012.2.912.35)
we have encountered a problem with the GridCalculatedColumn and EnableLinqExpressions = false where we receive an Exception on every PageLoad
Minimal Test Case:
<
telerik:RadGrid
ID
=
"RadGrid1"
DataSourceID
=
"XmlDataSource1"
runat
=
"server"
Width
=
"990px"
EnableLinqExpressions
=
"False"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
>
<
Columns
>
<
telerik:GridBoundColumn
runat
=
"server"
UniqueName
=
"value1"
DataField
=
"value1"
HeaderText
=
"Value 1"
/>
<
telerik:GridBoundColumn
runat
=
"server"
UniqueName
=
"value1"
DataField
=
"value1"
HeaderText
=
"Value 2"
/>
<
telerik:GridCalculatedColumn
runat
=
"server"
Expression
=
"value1 + value2"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
asp:xmldatasource
id
=
"XmlDataSource1"
runat
=
"server"
datafile
=
"Source.xml"
xpath
=
"DataPoints/Point"
/>
source.xml
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
DataPoints
>
<
Point
Value1
=
"1"
Value2
=
"2"
/>
</
DataPoints
>
This yields the Exception:
Server Error in '/Example' Application.
Cannot remove this column, because it is part of an expression: column = value1 + value2.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.ArgumentException: Cannot remove this column, because it is part of an expression: column = value1 + value2.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
Using Telerik Q2-2012-SP2 (2012.2.912.35)