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

Weekview: programmatically go to a date, and disabling links to dayview

3 Answers 75 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Max Figueredo
Top achievements
Rank 1
Max Figueredo asked on 16 Feb 2011, 08:22 PM
Hello there !

Thanks for previous help. I have a RadScheduler with only week view available, and on the same page I'm displaying a list of "upcoming events", which are appointments that fall out of the date range currently  displayed on the RadScheduler.

In this "upcoming events", I need to add a "go to" button, so that when it is clicked, the RadScheduler week view goes to that date, but the
SelectedDate property only works for dayViews, I haven't been able to find how to accomplish this in WeekView.

Also, in weekview the day numbers are hyperlinked to the respective dayView, I need to disable this hyperlinking because in this case the RadScheduler should only have Weekview available.

Any help / pointers are greatly appreciated, thanks !

Max

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 18 Feb 2011, 06:08 PM
Hi Max,

The SelectedDate property should work for all views, not only for Day view. Can you send an example when the SelectedDate property fails in Week view?

To disable going to Day view on clicking the date links, you can use the following code:
<script type="text/javascript">
      function pageLoad()
      
          $telerik.$(".rsDateHeader").click(function(e){return false;});
      }
  </script>


All the best,
Peter
the Telerik team
0
Max Figueredo
Top achievements
Rank 1
answered on 19 Feb 2011, 12:56 AM
Hi Peter,

Thanks, the fix for the date links worked perfectly !

Now I think the issue with SelectedDate is unrelated to the RadScheduler, thanks anyways.

One thing I have been trying to figure out, is there any way in WeekView to replace the label that says "all-day" to something different ?, perhaps using jQuery ?. I'm working on a student timetable project, and here at the school an "all-day" event really means an online course, so I'm looking for a way to replace that label.

Greatly appreciate any help, thanks in advance !
0
Peter
Telerik team
answered on 21 Feb 2011, 03:03 PM

Please, try setting Localization-AllDay="Course A" for RadScheduler.

Best wishes,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Scheduler
Asked by
Max Figueredo
Top achievements
Rank 1
Answers by
Peter
Telerik team
Max Figueredo
Top achievements
Rank 1
Share this question
or