Hello,
I have an RadGrid with a DateTimePicker and a RadTimePicker in seperate GridTemplateColumn, so they are open for editing. When I do a postback (Save), I validates the DateTimePicker and RadTimePicker for each row to be sure they have valid data. If they don't have valid data then I set one of the labels to visible. When the page loads again I get a JavaScript error in Telerik.Web.UI.WebResource.axd.
I have no Ajax on the grid, just a standard grid with EditMode="InPlace"
The error:
Line: 16937
Error: 'this.get_timeView()' is null or not an object
The line in telerik code:
this._timePopupContainerID=this.get_timeView().get_id()+"_wrapper";
Can you tell what is wrong?
Thanks
I have an RadGrid with a DateTimePicker and a RadTimePicker in seperate GridTemplateColumn, so they are open for editing. When I do a postback (Save), I validates the DateTimePicker and RadTimePicker for each row to be sure they have valid data. If they don't have valid data then I set one of the labels to visible. When the page loads again I get a JavaScript error in Telerik.Web.UI.WebResource.axd.
I have no Ajax on the grid, just a standard grid with EditMode="InPlace"
The error:
Line: 16937
Error: 'this.get_timeView()' is null or not an object
The line in telerik code:
this._timePopupContainerID=this.get_timeView().get_id()+"_wrapper";
<telerik:GridTemplateColumn HeaderText="Date" UniqueName="Date"> <ItemTemplate> <telerik:RadDatePicker ID="rdpDate" runat="server" DatePopupButton-Visible="true" Width="100px"> <DateInput ID="DateInputDate" runat="server" InvalidStyleDuration="100"> <ClientEvents OnError="OnRadDatePickerError" /> </DateInput> <DatePopupButton ToolTip="Select date" /> </telerik:RadDatePicker> <asp:CustomValidator ID="cvDate" runat="server" ErrorMessage="<br />Invalid date" ValidationGroup="Gameplan" SetFocusOnError="true" Display="Dynamic" ControlToValidate="rdpDate" ClientValidationFunction="ValidateRadDatePickers"></asp:CustomValidator> <asp:RequiredFieldValidator ID="rfvDate" runat="server" ControlToValidate="rdpDate" Display="Dynamic" ErrorMessage="<br />Mandatory" ValidationGroup="Gameplan" SetFocusOnError="true"></asp:RequiredFieldValidator> <asp:Label ID="lblMatchDate" runat="server" ForeColor="Red" Visible="False"><br />Date error</asp:Label><asp:Label ID="lblLastDateError" runat="server" ForeColor="Red" Visible="False"><br />Last date error</asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="Tidspunkt" UniqueName="Time"> <ItemTemplate> <telerik:RadTimePicker ID="rtpTime" runat="server" TimePopupButton-Visible="true" Width="65px"> <DateInput ID="DateInputTime" runat="server" InvalidStyleDuration="100"> <ClientEvents OnError="OnRadTimePickerError" /> </DateInput> </telerik:RadTimePicker> <asp:CustomValidator ID="cvTime" runat="server" ErrorMessage="<br />Wrong format" ValidationGroup="Gameplan" ControlToValidate="rtpTime" ClientValidationFunction="ValidateRadTimePickers" SetFocusOnError="true" Display="Dynamic"></asp:CustomValidator> </ItemTemplate> </telerik:GridTemplateColumn>Can you tell what is wrong?
Thanks