Hello All,
I'm trying to calculate a percentage in a GridCalculatedColumn, but both input types are integer, so the return value is incorrect (an int formatted as %, which results in 0%, 100% 200% etc.)
Is it possible to cast the value in the expression, or do I have to do it the hard way using itemdatabound or similar?
markup:
<telerik:GridCalculatedColumn DataFields="totalNo,UsedNo" HeaderText="Allocated" DataType="System.Decimal"
Expression="({0} / {1})" ColumnGroupName="Compute" DataFormatString="{0:P}" />
I tried "(Convert.ToDecimal({0}) .... but that gave me errors.
Thx in advance!
M.