Culture setting not working

2 posts, 0 answers
  1. marco
    marco avatar
    36 posts
    Member since:
    Sep 2007

    Posted 09 Mar 2017 Link to this post

    I'm expecting that the property Culture of the radgrid 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 obviously on the Insert and Update command, everything goes in error if the user type the number in a different culture from the server.

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

    • Decimal separator: ,  (comma)
    • Digit group: . (point)

     

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

    • Decimal separator: . (point)
    • Digit group: , (comma)

     

     

     

     

     

     

  2. marco
    marco avatar
    36 posts
    Member since:
    Sep 2007

    Posted 18 Nov 2017 in reply to marco Link to this post

    no one knows how to solve this bug?! No replies from Telerik??
Back to Top