This is a migrated thread and some comments may be shown as answers.

Show RadAlert when Date is out of Range

5 Answers 75 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Kamran
Top achievements
Rank 1
Kamran asked on 21 May 2013, 07:38 AM
Hi .
I have a Scenrio. I want to use RadAlert instead Javascript alert when out of range is Selected in RadCalender. 
For description I am attaching a Screen cast. 
Any Help ?

http://screencast.com/t/6ijQg1Oqc

Regards:
Kamran

5 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 24 May 2013, 11:50 AM
Hello Kamran,

You can use RadWindowManager to achieve the requested functionality:
http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx

Hope this helps.

Regards,
Eyup
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.
0
Kamran
Top achievements
Rank 1
answered on 27 May 2013, 06:23 AM
Hello Eyup,
Thanks for Replying me.
I have already put a RadWindowManager on the page but still Out of Range popup shows the Javascript popup. I was just wondering to find the event of RadCalener that can be override to get the specific funcationality. Putting RadWindowManger on page is not resolving the Issue.
Any other Solution ?

Regards:
Kamran
0
Eyup
Telerik team
answered on 29 May 2013, 02:11 PM
Hello Kamran,

I am afraid it is difficult to figure out how you are getting the mentioned alert. Can you replicate this behavior with any of our demos?
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

Please provide us the exact steps to reproduce the alert or open a support ticket to send us a sample runnable application demonstrating the behavior. Thus, we will be able to further analyze the requirement and provide a proper approach.

Regards,
Eyup
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.
0
Kamran
Top achievements
Rank 1
answered on 30 May 2013, 07:53 AM
Hello Eyup

For range selection of RadCalender I have written the following code on Page_Load method

 RadCalender1.RangeMaxDate = DateTime.Now.AddDays(15);
 RadCalender1.RangeMinDate = DateTime.Today.Date;


and in Mark up 

  <telerik:RadCalendar ID="RadCalender1" runat="server" OnSelectionChanged="RadCalender1_SelectionChanged
 SkinID="myCalender" Width="350" Height="212" AutoPostBack="true" EnableMultiSelect="false"   ShowRowHeaders="false"> 
 </
telerik:RadCalendar>
  <telerik:RadWindowManager ID="RadWindowManager2" runat="server" EnableShadow="true" Skin="WebBlue"></telerik:RadWindowManager>


and the result shown when Date is out of range is in this Screen Shot

Screen Shot



0
Eyup
Telerik team
answered on 31 May 2013, 09:35 AM
Hello Kamran,

I have prepared a sample web site to test the described behavior. Can you please run the attached application and instruct me the exact steps to reproduce the alert?

Regards,
Eyup
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.
Tags
Calendar
Asked by
Kamran
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Kamran
Top achievements
Rank 1
Share this question
or