I have a column in my grid which holds a tonnage amount. I wanted to trim the trailing zero's and so I used the following syntax for the column:
<telerik:GridBoundColumn
DataField="Tonnage_Ordered"
UniqueName="Tonnage_Ordered"
DataType="System.Decimal"
DataFormatString="{0:G29}"
HeaderText="Tonnage" />
When the page is initially loaded the formating works. I am setting the datasource server side. When I try to refresh the grid by client side data binding I get the following error message:
Microsoft JScript runtime error: Sys.FormatException: Format specifier was invalid.
Should I be using a different DataStringFormat or will Telerik be fixing this?
Regards,
Cynthia
<telerik:GridBoundColumn
DataField="Tonnage_Ordered"
UniqueName="Tonnage_Ordered"
DataType="System.Decimal"
DataFormatString="{0:G29}"
HeaderText="Tonnage" />
When the page is initially loaded the formating works. I am setting the datasource server side. When I try to refresh the grid by client side data binding I get the following error message:
Microsoft JScript runtime error: Sys.FormatException: Format specifier was invalid.
Should I be using a different DataStringFormat or will Telerik be fixing this?
Regards,
Cynthia