Disable Radcalendar multi date selection

3 posts, 0 answers
  1. jeevitha
    jeevitha avatar
    63 posts
    Member since:
    Sep 2008

    Posted 30 Nov 2009 Link to this post

    Hi,

    I have multiview calendar control. I could able to bind the selected dates in the calendar control. I need to show the calendar as  a readonly control. I should not allow the user to select dates from the calendar, If i give enabled="false" property then I could not view my selected dates in the calendar.
    <telerik:RadCalendar ID="RadCalendar1"    
                                  runat="server" Font-Names="Arial, Verdana, Tahoma"
                                MultiViewColumns="3" MultiViewRows="2"  
                                 >
                            </telerik:RadCalendar>
    .cs:
                    RadCalendar1.SelectedDates.Add(new RadDate(DateTime.Today));
                    RadCalendar1.SelectedDates.Add(new RadDate(2009, 11, 11));
    Pls help me





  2. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 30 Nov 2009 Link to this post

    Hello Jeevitha,

    You should set the PresentationType property to Preview in order to disable the selection.
    PresentationType Property

    <telerik:RadCalendar PresentationType="Preview" ID="RadCalendar1" runat="server" />

    Regards,
    Daniel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. jeevitha
    jeevitha avatar
    63 posts
    Member since:
    Sep 2008

    Posted 30 Nov 2009 Link to this post

    Thank you very much Daniel.. it works
Back to Top