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

4 posts, 0 answers
  1. Max Figueredo
    Max Figueredo avatar
    10 posts
    Member since:
    May 2009

    Posted 16 Feb 2011 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 18 Feb 2011 Link to this post

    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
  3. Max Figueredo
    Max Figueredo avatar
    10 posts
    Member since:
    May 2009

    Posted 18 Feb 2011 Link to this post

    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 !
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 21 Feb 2011 Link to this post


    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!
Back to Top