Conditional Calendar formatting

2 posts, 0 answers
  1. Nicole Griesmeyer
    Nicole Griesmeyer avatar
    12 posts
    Member since:
    Sep 2009

    Posted 12 Oct 2009 Link to this post

    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

  2. Johny
    Johny avatar
    80 posts
    Member since:
    Aug 2008

    Posted 16 Oct 2009 Link to this post

    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





Back to Top