Highlighting the Selected Day

12 posts, 0 answers
  1. Steve
    Steve avatar
    20 posts
    Member since:
    Feb 2007

    Posted 10 Oct 2007 Link to this post

    I am using a Date Picker to allow the user to change the selected date but the only highlighted day showing is the current day.  Also when using the Navigation Commands to change periods the Selected Date changes but not the highlighting.  Can this be handled through CSS? Code? If so, can you give me an example?  Thanks!

    Steve
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 11 Oct 2007 Link to this post

    Hi Steve Case,

    Thank you for your interest in RadScheduler. Have seen the Black Pearl online example? This is an integration example which uses RadCalendar to facilitate navigation. Every time you click on a date from the calender it becomes selected and is highlighted. Is this what you need or am I missing something?

    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Steve
    Steve avatar
    20 posts
    Member since:
    Feb 2007

    Posted 11 Oct 2007 Link to this post

    I think you misunderstood my question.  It is not the calendar I want to highlite, it is the "Selected Date" in the scheduler.  If you click on the "today" link, it takes you to the selected day and in this case highlites "Thu, 11" for 10/11/2007 in the week view.  This is what I want to highlite when I select a date through the use of the calendar control. 
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 11 Oct 2007 Link to this post

    Hi Steve,

    Thanks for elaborating. It helped me understand what you are after. However, RadScheduler currently does not support rendering a different style for the SelectedDate. We think this is a nice feature to add to the control so we will definitely consider it.

    Thank you for your involvement.


    All the best,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. David
    David avatar
    2 posts
    Member since:
    Apr 2008

    Posted 13 Apr 2008 Link to this post

    I believe I have a related issue.

    I'm trying to link up two Schedulers, similarly to how you've got them in this demo:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Scheduler/Examples/MultipleInstances/DefaultCS.aspx


    I've got one scheduler restricted to week/month views and the other to day view - i'd like to have the day view navigate to the date selected using the week/month view scheduler (by clicking on the timeslot).

    to do this, i've wired up the client event, "onclienttimeslotclick" using doPostBack - this works fine, although I wish this was a built in server event. 

    The problem comes with the date format - I'm getting different formats from your function eventArgs.get_time(); in IE and Firefox. 

    So a couple things - what is this format based off of?  Is there a universal parser available that can properly turn these values into DateTime objects, regardless of the browser used?

    Cheers

    -Dave
  7. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 15 Apr 2008 Link to this post

    Hello David,

    The problem you are experiencing is caused by a bug in the current implementation of RadScheduler. It will be fixed in the official version of RadControls "Prometheus" that will be released some time this week.

    We will also consider implementing a TimeSlotClick server event in one of the future versions of RadScheduler.

    Please excuse us for this inconvenience.

    Kind regards,
    Dimitar Milushev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. David
    David avatar
    2 posts
    Member since:
    Apr 2008

    Posted 16 Apr 2008 Link to this post

    Thanks!

  9. Jeavon Leopold
    Jeavon Leopold avatar
    2 posts
    Member since:
    Mar 2008

    Posted 17 Apr 2008 Link to this post

    Dimitar,

    I've installed the newest version (released on the 15th) and I'm still seeing this problem:

    ==============================

    "The problem comes with the date format - I'm getting different formats from your function eventArgs.get_time(); in IE and Firefox. 

    So a couple things - what is this format based off of?  Is there a universal parser available that can properly turn these values into DateTime objects, regardless of the browser used?"

    ==============================

    Can you please tell me what the time format eventArgs.get_time(); returns for each web browser?  This is what I'm getting:

    IE:              Thu Apr 10 04:00:00 UTC+0700 2008
    FireFox:     Thu Apr 10 2008 04:00:00 GMT+0700 (SE Asia Standard Time)

    It's not a big sweat for me to just parse it differently based on the user's browser information, but I'm imagining that this will be different for every browser on the market.  It seems silly that I'd have to do all that just to get the date the user has clicked on into a DateTime object.

    Cheers

    -Dave (using Jeavon's account for Gold service)
  10. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 18 Apr 2008 Link to this post

    Hello Dave,

    The .get_time() method returns a normal javascript Date() object. The return value of the .toString() method of this object depends entirely on browser implementation. For example, you can observe the same behavior at http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_tostring

    I'd recommend to use the .getHours() and .getMinutes() methods of the Date() object instead of parsing it as a string. You can see the Date Object Reference at http://www.w3schools.com/jsref/jsref_obj_date.asp

    All the best,
    Dimitar Milushev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  11. Jeavon Leopold
    Jeavon Leopold avatar
    2 posts
    Member since:
    Mar 2008

    Posted 18 Apr 2008 Link to this post

    Thanks!
  12. David Penny
    David Penny avatar
    174 posts
    Member since:
    Jun 2006

    Posted 26 Sep 2008 Link to this post

    Hi Peter,

    I was searching for how to highlight the day selected from the Radscheduler Calendar (using latest 2008 release) and wondered if anything had been done with this.

    My issue is almost exactly the same - for example I have a week view shown, but have some other details displayed on the page such as the number of hours entered on the selected day.  Although this does update correctly, it would be nice if the Scheduler could indicate which day is the currently selected day.

    David Penny
    Pillar Software
  13. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 26 Sep 2008 Link to this post

    Hello David,

    Please, see this kb article.


    Regards,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017