Calendar multiple date selection problem

4 posts, 1 answers
  1. Keith
    Keith avatar
    94 posts
    Member since:
    Jun 2012

    Posted 29 May 2013 Link to this post

    I have a simple RadCalendar control that allows the user to select a range of consecutive days. The first day is clicked regularly then the second day is selected with the shift key pressed. All days between the two days are placed in the selected range. However, by setting EnableMultiSelect to true, the user can also select the days at the top of the calendar (M, T, etc) and the calendar will select every Monday, Tuesday, etc.

    We need to ensure users cannot select days in this way because the days are not consecutive, but we still need to allow mulitselect.

    I am using javascript to manage the date selection by clearing the previous date is the user does not press the shift key.
    Selecting the dates by clicking on the week number in the left margin is ok, although if that functionality was lost, it wouldn't be a problem.

    Is there a setting that I can use to allow multiselect and but disallow users clicking the column and row headers?
  2. Answer
    Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 03 Jun 2013 Link to this post

    Hi Keith,

    Set these properties:
    <telerik:RadCalendar runat="server"
    EnableMultiSelect="true"
    UseColumnHeadersAsSelectors="false"
    UseRowHeadersAsSelectors="false">
    </telerik:RadCalendar>


    Regards,
    Vasil
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Keith
    Keith avatar
    94 posts
    Member since:
    Jun 2012

    Posted 03 Jun 2013 Link to this post

    It seems to me that I tried that already without any luck. I will verify by testing those settings once again.

    In the meantime, I have been using javascript to cancel the mouseclick event on the headers.
  5. Keith
    Keith avatar
    94 posts
    Member since:
    Jun 2012

    Posted 03 Jun 2013 Link to this post

    I was able to use your suggestion to resolve the issue. Apparently the client cache needed to be cleared to allow the changes to be applied.
Back to Top