Hello,
I have created a RadGrid that uses KeyboardNavigation for making changes. Two of my columns are dates and use RadDatePickers for inline editing. My third column is just a Notes column (text box).
When I hit [Enter] to put a row into Edit Mode, move to the Notes text box and hit [Enter] I can save the row, or if I hit [Escape] I can cancel the edit.
If, however, my focus is on one of the two RadDatePickers and I hit [Enter] or [Escape] I get the following error:
Text property cannot be set. String was not recognized as a valid DateTime.
[InvalidCastException: Text property cannot be set. String was not recognized as a valid DateTime.]
Telerik.Web.UI.RadDateInput.RangeTextProperty(String value) +265
Telerik.Web.UI.RadDateInput.set_Text(String value) +47
Telerik.Web.UI.DatePickingInput.LoadPostData(String postDataKey, NameValueCollection postCollection) +750
Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +42
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +327
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +878
Has anyone else seen this one?
Thanks,
-Aaron
I have created a RadGrid that uses KeyboardNavigation for making changes. Two of my columns are dates and use RadDatePickers for inline editing. My third column is just a Notes column (text box).
When I hit [Enter] to put a row into Edit Mode, move to the Notes text box and hit [Enter] I can save the row, or if I hit [Escape] I can cancel the edit.
If, however, my focus is on one of the two RadDatePickers and I hit [Enter] or [Escape] I get the following error:
Text property cannot be set. String was not recognized as a valid DateTime.
[InvalidCastException: Text property cannot be set. String was not recognized as a valid DateTime.]
Telerik.Web.UI.RadDateInput.RangeTextProperty(String value) +265
Telerik.Web.UI.RadDateInput.set_Text(String value) +47
Telerik.Web.UI.DatePickingInput.LoadPostData(String postDataKey, NameValueCollection postCollection) +750
Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +42
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +327
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +878
<telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="true" AutoGenerateColumns="False" PageSize="15" AllowSorting="True" AllowMultiRowSelection="true" AllowPaging="True" AutoGenerateEditColumn="true" GridLines="None" Width="50%" Skin="Hay"> <PagerStyle Mode="NumericPages" /> <MasterTableView DataKeyNames="RecordID" AllowMultiColumnSorting="True" Width="100%" CommandItemDisplay="Top" Name="Customers" EditMode="InPlace"> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldAlias="Name" FieldName="Name" /> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="Name" SortOrder="Ascending" /> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <Columns> <telerik:GridBoundColumn UniqueName="Name" DataField="Name" HeaderText="Name" ReadOnly="true" Visible="false" /> <telerik:GridDateTimeColumn UniqueName="StartDate" DataField="StartDate" HeaderText="Start Date" ColumnEditorID="editorStartDate" DataFormatString="{0:M/d/yyyy}" /> <telerik:GridDateTimeColumn UniqueName="EndDate" DataField="EndDate" HeaderText="End Date" ColumnEditorID="editorEndDate" DataFormatString="{0:M/d/yyyy}" /> <telerik:GridBoundColumn UniqueName="Notes" DataField="Notes" HeaderText="Notes" ColumnEditorID="editorNotes" /> </Columns> </MasterTableView> <ClientSettings AllowKeyboardNavigation="true"> <ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" OnCommand="GridCommand" /> <KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowSubmitOnEnter="true" AllowActiveRowCycle="true" CollapseDetailTableKey="LeftArrow" ExpandDetailTableKey="RightArrow" /> <Selecting AllowRowSelect="true" /> </ClientSettings> </telerik:RadGrid> <telerik:GridDateTimeColumnEditor ID="editorStartDate" runat="server" /> <telerik:GridDateTimeColumnEditor ID="editorEndDate" runat="server" /> <telerik:GridTextBoxColumnEditor ID="editorNotes" runat="server" />Thanks,
-Aaron