This is a migrated thread and some comments may be shown as answers.

Grid and GridNumericColumn thousand separator needed

3 Answers 976 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tadas
Top achievements
Rank 1
Tadas asked on 03 May 2011, 10:04 AM
Hello,

I have a RadGrid which has GridNumericColumns declared like this:

<telerik:GridNumericColumn DataField="Feb" DataType="System.Int32"
 HeaderText="Feb" DecimalDigits="0" EditFormColumnIndex="0"
 SortExpression="Feb" UniqueName="Feb" FilterControlWidth="50px"   >
<HeaderStyle Width="80px" />
</telerik:GridNumericColumn>
 
It displays perfectly when in edit mode. It adds thousand separator. But, when Grid is in View mode, then it shows numeric value without thousand separator.

Is there quick and easy way to show thousand separator when grid is in view mode?

The same question would be for displaying numeric values in Chart series and axis when using Telerik.Reporting

Thanks
Tadas

3 Answers, 1 is accepted

Sort by
0
Tadas
Top achievements
Rank 1
answered on 05 May 2011, 09:57 PM
anybody?
0
Iana Tsolova
Telerik team
answered on 06 May 2011, 08:21 AM
Hello Tadas,

When the grid is in view mode, the GridNumericColumn renders a literal control. To format the data rendered in this case, you can try using the DataFormatString property.

Best wishes,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Tadas
Top achievements
Rank 1
answered on 09 May 2011, 08:51 AM
Thanks. DataFormatString="{0:N}"
Tags
Grid
Asked by
Tadas
Top achievements
Rank 1
Answers by
Tadas
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or