How to change Calendar out of range message ?

5 posts, 0 answers
  1. UT
    UT avatar
    3 posts
    Member since:
    Jan 2011

    Posted 21 Jan 2011 Link to this post

    Hi,
    There is some code in my application to set calender min/max range date,  and changes cell style on  day render event.

    Now, I want to show a different message in alert of  "Date out of Range.".

    <telerik:RadCalendar ID="RadCalendar1"  runat="server" AutoPostBack="true" Skin="Hello"
            EnableEmbeddedSkins="false" EnableMonthYearFastNavigation="false" DayNameFormat="Short"  
            ShowRowHeaders="false" ShowOtherMonthsDays="false" Width="545px"
            ondayrender="RadCalendar1_DayRender" FastNavigationStep="1"
        onselectionchanged="RadCalendar1_SelectionChanged"
        EnableMultiSelect="false" FirstDayOfWeek="Sunday"
            ondefaultviewchanged="RadCalendar1_DefaultViewChanged" >
        <ClientEvents  OnDateClick="dateClick" />
    </telerik:RadCalendar>

    Thanks...!
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Jan 2011 Link to this post

    Hello,

    You can set the property DateIsOutOfRangeMessage which specifies the text of the message that appears when the user tries to move to a date that is out of range.

    Please refer the following documentation for more on this.
    Customizing the Navigation Controls

    Thanks,
    Shinu.
  3. UT
    UT avatar
    3 posts
    Member since:
    Jan 2011

    Posted 21 Jan 2011 Link to this post

    Thanks.
  4. Marin
    Admin
    Marin avatar
    1057 posts

    Posted 24 Jan 2011 Link to this post

    Hello,

    DateIsOutOfRangeMessage is property of the FastNavigationSettings of the RadCalendar.

     

    <telerik:RadCalendar ID="RadCalendar1" runat="server" Width="140px" RangeMinDate="11/5/2010"  RangeMaxDate="12/31/2010">
                <FastNavigationSettings DateIsOutOfRangeMessage="Custom Error Message"></FastNavigationSettings>
            </telerik:RadCalendar>

     

    Best wishes,
    Marin
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  5. UT
    UT avatar
    3 posts
    Member since:
    Jan 2011

    Posted 24 Jan 2011 Link to this post

    THANKS A LOT.  :-)
Back to Top