Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Culture of the edit form when dealing with dates

$
0
0

Hi Konstantin
Dikov,

<telerik:RadGrid runat="server" AllowFilteringByColumn="true" ID="RadGrid1"

        AutoGenerateColumns="false"  OnNeedDataSource="RadGrid1_NeedDataSource"

         OnItemDataBound="RadGrid1_ItemDataBound">

        <MasterTableView>

            <Columns>

               
<telerik:GridBoundColumn DataField="OrgFeeScheduleID"
HeaderText="ID">

               
</telerik:GridBoundColumn>

               
<telerik:GridBoundColumn DataField="Name"
HeaderText="Item">

               
</telerik:GridBoundColumn>                                        

               
<telerik:GridDateTimeColumn
UniqueName="std"
DataField="StartDate"
HeaderText="StartDate"></telerik:GridDateTimeColumn>                                

            </Columns>

        </MasterTableView>

    </telerik:RadGrid>

This is my grid I want to display the data based on the
culture (ar-SA) when im  running the page
It is getting error page because of GridDateTimeColumn

Error Message:

Valid values are between
1318 and 1500, inclusive.

Parameter name: year

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code. 



Exception Details: System.ArgumentOutOfRangeException: Valid values are between 1318
and 1500, inclusive.

Parameter name: year

I try to apply DateTimeFormat as GregorianCalendar but i field

Thanks&Regard's

Siva



Viewing all articles
Browse latest Browse all 94857