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

Culture setting not working

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
marco
Top achievements
Rank 2
marco asked on 09 Mar 2017, 11:22 AM

I'm expecting that the property Culture of the can be used to set the culture of the grid and this reflect also the data displayed in its cells, right?

 

<telerik:RadGrid ID="GrdWaypoints" runat="server" Width="550px" AutoGenerateColumns="False" Culture="en-US"
                                AllowAutomaticUpdates="false" AllowAutomaticInserts="false"AllowAutomaticDeletes="false"
                                 OnDeleteCommand="GrdWaypoints_DeleteCommand"OnInsertCommand="GrdWaypoints_InsertCommand" OnUpdateCommand="GrdWaypoints_UpdateCommand"OnItemDataBound="GrdWaypoints_ItemDataBound"
                                GroupPanelPosition="Top" OnNeedDataSource="GrdWaypoints_NeedDataSource">
                                <ClientSettings AllowDragToGroup="false">
                                    <Scrolling AllowScroll="false" UseStaticHeaders="false" />
                                </ClientSettings>
                                <GroupingSettings ShowUnGroupButton="false" />
                                <MasterTableView ShowGroupFooter="False" Width="100%" DataKeyNames="WaypointID"EditMode="InPlace">
                                    <NoRecordsTemplate>
                                        Per aggiungere waypoint dell'itinerario, clicca su "Aggiungi Waypoint"
                                    </NoRecordsTemplate>
                                    <Columns>
                                        <telerik:GridNumericColumn  UniqueName="Longitude" HeaderText="Longitudine"DataField="Longitude" DecimalDigits="6" DataFormatString="{0:#0.000#}" ></telerik:GridNumericColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>

 

So in the above grid no matter what I specify in the culture property the numbers, in the longitude GridNumeric column are always displayed based on the number regional settings of the server.

And on the Insert and Update command, everything goes in error if the user the number in a different culture from the server.

For I have a server with number regional settings like the following:

  • Decimal   (comma)
  • Digit (point)

 

but in this grid and only on this grid the user must insert the values in US format:

  • Decimal (point)
  • Digit (comma)

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
marco
Top achievements
Rank 2
answered on 18 Nov 2017, 08:58 PM
no one knows how to solve this bug?! No replies from Telerik??
Tags
Grid
Asked by
marco
Top achievements
Rank 2
Answers by
marco
Top achievements
Rank 2
Share this question
or