PDA

View Full Version : How can I give format to an integer field?



flormariafr
Jan 25, 2010, 9:54 AM
Hi,

How can I give format to an integer field in a Grid and Form view, like for example:

NumberOfSeats = 1000 I want to show 1.000

Vladimir
Jan 25, 2010, 4:56 PM
Hi,

http://forums.ext.net/showthread.php?threadid=21565-4-1.aspx#bm21671

flormariafr
Jan 26, 2010, 9:58 AM
Hi,

I do not understand where do I have to add this code.

We just purchased the professional version 1.0, do not you have this implementation yet in the new version?

Thanks,

Vladimir
Jan 26, 2010, 10:14 AM
Hi,

For 1.0 version use NumberColumn and Format="0.000/i"


<ext:NumberColumn DataIndex="numberCol" Header="Number" Format="0.000/i" />

Formats the number according to the format string.


examples (123456.789):
0 - (123456) show only digits, no precision
0.00 - (123456.78) show only digits, 2 precision
0.0000 - (123456.7890) show only digits, 4 precision
0,000 - (123,456) show comma and digits, no precision
0,000.00 - (123,456.78) show comma and digits, 2 precision
0,0.00 - (123,456.78) shortcut method, show comma and digits, 2 precision

To reverse the grouping (,) and decimal (.) for international numbers, add /i to the end. For example: 0.000,00/i

flormariafr
Jan 26, 2010, 5:27 PM
I have the version 1.0, but the inteligence does not show the field "ext:NumberColumn"

it only shows "ext:NumberField" and this control does not have the property Format.

Am I miss something?