RadDatePicker causes runtime javascript error

2 posts, 0 answers
  1. Rajiv
    Rajiv avatar
    1 posts
    Member since:
    May 2011

    Posted 19 May 2011 Link to this post

    Hi ,

    I am using RadDatePicker control inside the Gridview.
    I have three operation on Gridview row:- Insert, Edit,Delete.
    I am able to insert 10 records but when i insert 11th record i got the javascript runtime error. See Attachmenet Error.png
    I am using two RadDatePicker. When i remove both the RadDatePicker control from Gridview my application ran successfully.
    So RadDatePicker cause the error.
    When i remove one of the two RadDatePicker control, I got same error on the insertion of 21st record instead of 11th record.
    Please see the attachment for error.
    Below is the designcode.

    1st RadControl

    <

     

    asp:TemplateField meta:resourcekey="TemplateField3">

     

     

    <EditItemTemplate>

     

     

     

    <radCln:RadDatePicker ID="txtPriceValidFrom" runat="server" DbSelectedDate='<%# Bind("ValidFrom") %>' ControlContext="Product" RequiredPermission="EditProduct">

     

     

    <Calendar ID="Calendar3" runat="server">

     

     

     

    <SpecialDays>

     

     

     

    <radCln:RadCalendarDay Repeatable="Today" Date="">

     

     

     

    <ItemStyle CssClass="radCalendarTodayBackground" />

     

     

     

    </radCln:RadCalendarDay>

     

     

     

    </SpecialDays>

     

     

     

    </Calendar>

     

     

     

    <DateInput CssClass="TextBoxDays"></DateInput>

     

     

    <PopupButton CssClass="radPopupImage" ImageUrl="~/images/icons/calendar.gif" HoverImageUrl="~/images/icons/calendar.gif"></PopupButton>

     

     

    </radCln:RadDatePicker>

     

     

    </EditItemTemplate>

     

     

    <HeaderTemplate>

     

     

    <asp:Label runat="server" Text="Valid from" ID="lblValidFromHeader" meta:resourceKey="Label31"></asp:Label>

     

     

    </HeaderTemplate>

     

     

    <ItemTemplate>

     

     

    <asp:Label runat="server" Text='<%# Bind("ValidFrom") %>' ID="lblValidFrom" meta:resourceKey="lblValidFrom"></asp:Label>

     

     

    </ItemTemplate>

     

     

    </asp:TemplateField>

     


    2nd Radcontrol

    <

     

    asp:TemplateField meta:resourcekey="TemplateField4">

     

     

    <EditItemTemplate>

     

     

    <radCln:RadDatePicker ID="txtPriceValidTo" runat="server" DbSelectedDate='<%# Bind("ValidTo") %>'

     

     

    ControlContext="Product" RequiredPermission="EditProduct">

     

     

    <Calendar ID="Calendar4" runat="server">

     

     

    <SpecialDays>

     

     

    <radCln:RadCalendarDay Repeatable="Today" Date="">

     

     

    <ItemStyle CssClass="radCalendarTodayBackground" />

     

     

    </radCln:RadCalendarDay>

     

     

    </SpecialDays>

     

     

    </Calendar>

     

     

    <DateInput CssClass="TextBoxDays">

     

     

    </DateInput>

     

     

    <PopupButton CssClass="radPopupImage" ImageUrl="~/images/icons/calendar.gif" HoverImageUrl="~/images/icons/calendar.gif">

     

     

    </PopupButton>

     

     

    </radCln:RadDatePicker>

     

     

    </EditItemTemplate>

     

     

    <HeaderTemplate>

     

     

    <asp:Label runat="server" Text="Valid until" ID="lblValidUntil" meta:resourceKey="Label32"></asp:Label>

     

     

    </HeaderTemplate>

     

     

    <ItemTemplate>

     

     

    <asp:Label runat="server" Text='<%# Bind("ValidTo") %>' ID="lblValidTo" meta:resourceKey="lblValidTo"></asp:Label>

     

     

    </ItemTemplate>

     

     

    <ItemStyle VerticalAlign="Middle" />

     

     

    </asp:TemplateField>

     

  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 24 May 2011 Link to this post

    Hello Rajiv,

    I'd ask you to open up a formal support ticket and send a small sample that demonstrates the problem. Thanks. 

    Regards,
    Tsvetoslav
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top