Hi,
I'm having problem with calculated column in RadGrid (2010-02). Code:
Columns Price and Quantity are correct, without calculated column it is grid OK, but when I add it, I got cryptic error:
Exception Details: Telerik.Web.UI.ParseException: ')' or ',' expected
Can anybody tell me, what's wrong?
Thank you,
Zdenek
I'm having problem with calculated column in RadGrid (2010-02). Code:
...
<
telerik:GridBoundColumn
DataField
=
"Quantity"
HeaderText
=
"Quantity
"
SortExpression
=
"Quantity"
UniqueName
=
"colQuantity"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Price"
HeaderText
=
"Price
"
SortExpression
=
"Price"
UniqueName
=
"colPrice"
DataFormatString
=
"{0:C}"
></
telerik:GridBoundColumn
>
<
telerik:GridCalculatedColumn
HeaderText
=
"Total Cost"
UniqueName
=
"colTotalCost"
DataType
=
"System.Double"
DataFields
=
"Quantity, Price"
Expression
=
"{0}*{1}"
/>
...
Columns Price and Quantity are correct, without calculated column it is grid OK, but when I add it, I got cryptic error:
')' or ',' expected
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: Telerik.Web.UI.ParseException: ')' or ',' expected
Can anybody tell me, what's wrong?
Thank you,
Zdenek