REcurrence editor MaxOccurrence

2 posts, 0 answers
  1. Yelena
    Yelena avatar
    2 posts
    Member since:
    Dec 2013

    Posted 30 Apr 2014 Link to this post

    After our company has the last version of telerik controls I noticed that End after occurrences (maxoccurrence) input has value 10 by default and radio button does not count, so when user tries to create a recurrence scheduler it count that it should be 10 occurrence.
    How to change this behavior.  I need empty value from the beginning for the new scheduler and application should check for the radio button.

    Thank you for your help
  2. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 05 May 2014 Link to this post

    Hello Yelena,

    Indeed we changed the specified behavior recently. However, when the radio button is not checked the default value 10 (which is identically implemented in Outlook) is not considered. You could use jQuery in order to alter the behavior. Please consider handling the OnClientFormCreated and the following approach as an example:

    <script type="text/javascript">
           var $ = $telerik.$;
           function OnClientFormCreated(sender, eventArgs) {
               $("#RadScheduler1_Form_RecurrentAppointment").on('click', function () {
     
                   $("#RadScheduler1_Form_RangeOccurrences").val("");
     
                   $("#RadScheduler1_Form_RepeatGivenOccurrences").on('click', function () {
                       $("#RadScheduler1_Form_RangeOccurrences").val("10");
                   })
               })
           }
     
       </script>


    Regards,
    Nencho
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top