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

Conditional Calendar formatting

1 Answer 67 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Nicole Griesmeyer
Top achievements
Rank 1
Nicole Griesmeyer asked on 12 Oct 2009, 08:43 PM
Hello,

First of all, you all have been so helpful on my web development adventures, so thank you!

My next mission is to make one datetimepicker dependent on the other. I do not want the call date/ time to be after the event date/ time, because that wouldn't make any sense. I don't see anything in the behaviors that looks like it has that functionality, but I bet it is there. How can I do this?

Also, I notice that the time portion is selected by hours, and then you can use the arrow keys on the keyboard to scroll up and down the minutes. In my case, I'm sure that many events will not start on the hour, and want to automatically offer the option to scroll, so I guess my question here is twofold:

Is there a way to select down to the minutes in the picker? Somewhere in the settings that I haven't seen?

If not, is there a way to set the focus to the minutes field of the datetime box for my users' convenience? Meaning that I want the cursor to be blinking in the minutes field of the timepicker. I want to assume they'll immediately want to edit it. Is that possible?

Thank you so much,
Nicole

1 Answer, 1 is accepted

Sort by
0
Johny
Top achievements
Rank 1
answered on 16 Oct 2009, 12:56 PM
Hi Nicole,

I am not quite sure that i completely understand your first question. Maybe you can give some more details about what you intent to do.
As to setting focus on the minutes part inside the input area, you can use a Javascript function like this (using format MM/dd/yyyy hh:mm tt):

function pageLoad(sender, args) 
            { 
                $find("RadDateTimePicker1").get_dateInput().set_caretPosition(14); 
            } 

Here is a link to the client side API for more information:

http://www.telerik.com/help/aspnet-ajax/input_clientsideraddateinput.html

I hope this helps.

Thanks
Johny





Tags
Calendar
Asked by
Nicole Griesmeyer
Top achievements
Rank 1
Answers by
Johny
Top achievements
Rank 1
Share this question
or