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

[Solved] Problem in Change the Start Time of Datetime Picker Client Side

1 Answer 152 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 14 May 2009, 08:41 AM

Hi All,

I have taken a Date Time Picker control. I want to change the start time of Time View on selected date changed.
Does anyone know, please tell me.
markup is as follows :

function

a() {

 

 

var b = new Date("<%= t %>");

 

 

var ctl = $find("<%=rdCallbackDate.ClientID %>");

 

 

var timeView = ctl.get_timeView();

 

 

var n = new Date("15 May 2009 15:20:20");

 

timeView.set_startTime(n)

ctl.set_timeView(timeView);

return false;

 

}

 

 

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

 

 

 

 

 

Width="220px">

 

 

 

 

 

<ClientEvents OnDateSelected="RR" />

 

 

 

 

 

</telerik:RadDateTimePicker>
<asp:Button ID="arrr" runat="server" Text="aa" OnClientClick="return a();" />



Thanks & Regards
Brijendra pandey    

 

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 19 May 2009, 10:00 AM
Hello Brijendra,

Unfortunately the functionality you are searching for is not attainable. You can set the StartTime property declaratively in the mark-up code like in this code snippet:
    <telerik:RadDateTimePicker ID="rdCallbackDate" runat="server" Skin="Hay" DateInput-DateFormat="dd MMM yyyy HH:mm" 
        Width="220px" TimeView-StartTime="08:00:00"
        <ClientEvents /> 
    </telerik:RadDateTimePicker> 

I will forward this issue to our developers for further investigation.

Kind regards,
Georgi Krustev
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.
Tags
Calendar
Asked by
Brijendra Kumar
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or