PDA

View Full Version : [CLOSED] .DecimalPrecision for NumberColumn



bayoglu
Feb 21, 2013, 8:22 PM
Hello,

I can't locate .DecimalPrecision for number column in ext.net v2. Whta should I use for viewing values as integer? (without a custom renderer call)
It is 2 by default.



<ext:NumberColumn ID="CountryRank" runat="server" Text="Rank" DataIndex="CountryRank" Align="Center" Flex="1" >
<Editor>
<ext:NumberField runat="server" ID="CountryRankEditor" AllowBlank="true" MinValue="1" AllowDecimals="false" DecimalPrecision="0"></ext:NumberField>
</Editor>
</ext:NumberColumn>


Thanks.

Baidaly
Feb 21, 2013, 10:14 PM
Hello!

If you want to remove decimals in column not in editor, you can use renderer or handle Edit event of CellEditing plugin. http://examples2.ext.net/#/GridPanel/Editable/Editor_with_DirectMethod/

bayoglu
Feb 22, 2013, 12:08 AM
Hello!

If you want to remove decimals in column not in editor, you can use renderer or handle Edit event of CellEditing plugin. http://examples2.ext.net/#/GridPanel/Editable/Editor_with_DirectMethod/

Okay, I switched to ext:Column for not calling a renderer. I am using a NumberField editor which already (and still (; ) has .DecimalPrecision property. ext:Column shows value with zero precision. Thank you Baidaly. Case closed.