This is a migrated thread and some comments may be shown as answers.

Problem to select date in Datetime Picker

3 Answers 82 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Brijendra Kumar
Top achievements
Rank 1
Brijendra Kumar asked on 23 Apr 2009, 06:02 AM
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    

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 23 Apr 2009, 11:54 AM
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.
0
Evelyn
Top achievements
Rank 1
answered on 13 Sep 2011, 05:42 PM
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 :(.
0
Daniel
Telerik team
answered on 16 Sep 2011, 12:48 PM
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
Tags
Calendar
Asked by
Brijendra Kumar
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Evelyn
Top achievements
Rank 1
Share this question
or