This is a migrated thread and some comments may be shown as answers.
How to change Calendar out of range message ?
4 Answers 44 Views
This is a migrated thread and some comments may be shown as answers.
UT
Top achievements
Rank 1
UT asked on 21 Jan 2011, 06:26 AM
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...!

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 21 Jan 2011, 11:24 AM
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.
0
UT
Top achievements
Rank 1
answered on 21 Jan 2011, 01:52 PM
Thanks.
0
Marin
Telerik team
answered on 24 Jan 2011, 09:39 AM
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.
0
UT
Top achievements
Rank 1
answered on 24 Jan 2011, 09:46 AM
THANKS A LOT.  :-)
Asked by
UT
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
UT
Top achievements
Rank 1
Marin
Telerik team
Share this question
or