[RadCalendar] Automatic week selection instead of the day selection

5 posts, 0 answers
  1. Christophe
    Christophe avatar
    5 posts
    Member since:
    May 2008

    Posted 23 May 2008 Link to this post

    Hello,

    I use a RadCalendar. My problem is the following : when the user select a day, I want to deselect all the selected days and select all the week.
    So, I use the following parameters : 

    UseColumnHeadersAsSelectors

    ="false" EnableViewSelector="false" UseRowHeadersAsSelectors="true"

    For the unselection, it's not a problem, I use the methods unselectedDates and get_selectedDates (for the events OnDateClickand OnRowHeaderClick).

    But I don't think a easy to select all the week :
    I have 2 ideas to do that :
    - Obtains the row (args.get_renderDay().DayRow) and call the method used for a row header click, but I don't see how to call it.
    - create a new Date javascript object based on the triplet returned by args.get_renderDay().get_date() and, using the getDay method, manually compute the day for the monday, the tuesday... But I think this way is not the best to do that. 
    What's the good solution ?

    Thank you in advance,

    Christophe.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 23 May 2008 Link to this post

    Hello Christophe,

    Take a look at the following code libraries:

    All the best,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Christophe
    Christophe avatar
    5 posts
    Member since:
    May 2008

    Posted 23 May 2008 Link to this post

    Hello Steve,

    Thank you, I think the third link is exactly what I want.

    Christophe.
  4. Marijana Cubra
    Marijana Cubra avatar
    11 posts
    Member since:
    May 2010

    Posted 01 Jun 2010 Link to this post

    Hello,

    Can you please update links to given examples?

    Regards,
    M
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Jun 2010 Link to this post

    Hi,

    Find the updated links below:

    Calendar single day / single week selection
    Calendar week selection only (with confirmation popup)
    Select the whole week by clicking on a date



    All the best,
    Maria Ilieva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top