Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1220
column Format property, and adding rows using javascript
posted

Hello,

i have a column format set to "0.00:<span class=red>(0.00)</span>"

so that positive/negative values appear as 2123.00  and (2341.00)

this works fine when grid is generated on the server. 

if grid rows are added with javascript, format is written out into the cell:

| 0.00:<span class=red>(0.00)</span> | 

this only happens if datatype is set to System.Int32 or System.Decimal.

if datatype is set to String.. value is not replaced with format.