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

Highlighting the Selected Day

11 Answers 245 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 10 Oct 2007, 12:49 PM
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

11 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Oct 2007, 11:48 AM
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
0
Steve
Top achievements
Rank 1
answered on 11 Oct 2007, 12:00 PM
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. 
0
Peter
Telerik team
answered on 11 Oct 2007, 02:54 PM
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
0
David
Top achievements
Rank 1
answered on 13 Apr 2008, 08:09 AM
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
0
Dimitar Milushev
Telerik team
answered on 15 Apr 2008, 11:08 AM
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
0
David
Top achievements
Rank 1
answered on 16 Apr 2008, 05:26 AM
Thanks!

0
Jeavon Leopold
Top achievements
Rank 1
answered on 17 Apr 2008, 11:57 AM
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)
0
Dimitar Milushev
Telerik team
answered on 18 Apr 2008, 02:59 PM
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
0
Jeavon Leopold
Top achievements
Rank 1
answered on 18 Apr 2008, 05:11 PM
Thanks!
0
David Penny
Top achievements
Rank 2
answered on 26 Sep 2008, 08:32 AM
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
0
Peter
Telerik team
answered on 26 Sep 2008, 11:14 AM
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.
Tags
Scheduler
Asked by
Steve
Top achievements
Rank 1
Answers by
Peter
Telerik team
Steve
Top achievements
Rank 1
David
Top achievements
Rank 1
Dimitar Milushev
Telerik team
Jeavon Leopold
Top achievements
Rank 1
David Penny
Top achievements
Rank 2
Share this question
or