Show RadAlert when Date is out of Range

6 posts, 0 answers
  1. Kamran
    Kamran avatar
    11 posts
    Member since:
    Apr 2012

    Posted 21 May 2013 Link to this post

    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
  2. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 24 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kamran
    Kamran avatar
    11 posts
    Member since:
    Apr 2012

    Posted 27 May 2013 Link to this post

    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
  5. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 29 May 2013 Link to this post

    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.
  6. Kamran
    Kamran avatar
    11 posts
    Member since:
    Apr 2012

    Posted 30 May 2013 Link to this post

    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



  7. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 31 May 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017