Problem to select date in Datetime Picker

4 posts, 0 answers
  1. Brijendra Kumar
    Brijendra Kumar avatar
    38 posts
    Member since:
    Oct 2008

    Posted 23 Apr 2009 Link to this post

    Dear Sir,

    i have taken a Rad DatetimePicker Control. When i set a date client side using javascript, it does not give error but selected date is not showing in control. I have used update panels.
    javascript code is as follows:

    $find(

    '<%= rdCallbackDate.ClientID %>').set_minDate(callbackDate);

     

     

    $find('<%= rdCallbackDate.ClientID %>').set_selectedDate(callbackDate);

     

    $find(

    '<%= rdCallbackDate.ClientID %>').get_dateInput()._initialValue = callbackDate;

    and control markup is as follows:

     

    <

    asp:UpdatePanel ID="up" runat="server">

     

     

    <ContentTemplate>

     

    <telerik:RadDateTimePicker ID="rdCallbackDate" runat="server" Skin="Hay" DateInput-DateFormat="dd MMM yyyy HH:mm"

     

     

     

     

    Width="220px" AutoPostBackControl="Calendar">

     

     

     

     

    </telerik:RadDateTimePicker>

     

     

     

     

     

    </ContentTemplate>

     

    </

    asp:UpdatePanel>

     

     

    Kindly resolve my problem..

    Thanks & regards
    Briendra Pandey    

  2. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 23 Apr 2009 Link to this post

    Hello Brijendra,

    I'm unable to reproduce the problem locally. Please test the attached example and let me know whether it behaves as expected on your end.

    Regards,
    Daniel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Evelyn
    Evelyn avatar
    2 posts
    Member since:
    May 2011

    Posted 13 Sep 2011 Link to this post

    HI,
    I 've a problem with RadDateTimePicker inside of radwindow.
    I want to open with javascript and I call the code in the behind code (cs).

    is the my control:
    <telerik:RadDateTimePicker ID="rdtAppointment" runat="server" AutoPostBackControl="Both"
                                        Calendar-EnableNavigation="true"
                                        Calendar-EnableMonthYearFastNavigation="false" TimePopupButton-Visible="false"
                                        TimeView-RenderDirection="Vertical" TimeView-Columns="5" EnableTyping="false"
                                        OnSelectedDateChanged="rdtAppointmentSelectedDateChanged">
    </telerik:RadDateTimePicker>
    and by code I call with:
    ScriptManager.RegisterStartupScript(rdtHorasDisponibilidad, typeof(Page), "Script", "setTimeout('OpenTimeView();','');", true);

    and de javascript code is:
    function OpenTimeView() {
        var dateTimePicker = $find("<%=rdtAppointment.ClientID%>");
        dateTimePicker.showTimePopup();
       }
    Remenber, this code are in the page that I 'm calling on the radwindow
    Any idea, please?

    Sorry for my english but I speak Spanish :(.
  4. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 16 Sep 2011 Link to this post

    Hi Evelyn,

    Not sure how to reproduce the problem locally. Please find attached a simple demo created after your code. Run Default2.aspx and let me know if you see anything wrong.

    Regards,
    Daniel
    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