Grid is not keeping format when setting value and text in javascript

12 replies. Last post: February 25, 2010 5:02 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I have a grid column definied as

<ISWebGrid:WebGridColumn Caption="Money" EditType="TextBox" Name="Money" Width="70px" DataMember="Money" DataFormatString="$##,###.00"> </ISWebGrid:WebGridColumn>

 

This field is based off a calculation.  So I need to set the text and value in javascript.  However, when I set the text and value the format is no longer in the correct format.  Shouldn't the grid see that the column has the DataFormatString property set and set it?  I should not have to format my data first.  Here my code snipit.

row.GetCells().GetNamedItem("Money").SetText("5", true); row.GetCells().GetNamedItem("Money").SetValue("5");
All times are GMT -5. The time now is 4:45 AM.
Previous Next