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

GridCalculatedColumn help.

2 Answers 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Will Skelton
Top achievements
Rank 1
Will Skelton asked on 07 Jul 2010, 11:26 PM
Hello Group,

I'm attempting to use the GridCalculatedColumn to negate a number coming from my DB but i'm having some troubles.

Telerik.Web.UI version = 2009.3.1314.35

My aspx markup is
<telerik:GridCalculatedColumn UniqueName="VisitAmountCol" HeaderText="Visit Amt."
DataFormatString="{0:C}"  Expression="{0}*-1"
DataFields="visit.visitcost" />

This markup throws the following exception.
Exception Details: Telerik.Web.UI.ParseException: ')' or ',' expected


Any help is greatly appreciated.
Many Thanks!
Will



2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 08 Jul 2010, 06:08 AM
Hello Will,

Try setting EnableLinqExpressioins property of grid as false and check whether this eliminates this exception as described in the forum.

Trouble with GridCalculatedColumn

Thnaks,
Princy.
0
Will Skelton
Top achievements
Rank 1
answered on 08 Jul 2010, 04:48 PM
Thanks Princy,

That seems to have worked.

Will
Tags
Grid
Asked by
Will Skelton
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Will Skelton
Top achievements
Rank 1
Share this question
or