How can we disable the HOURLY option in Recurrence Pattern

9 posts, 0 answers
  1. Rama
    Rama avatar
    20 posts
    Member since:
    Apr 2008

    Posted 21 May 2008 Link to this post

    Hi,

    I am using the scheduler Control, I would like not to provide the Hourly option in Recurrence pattern. Is there anyway can we do that.

    Regards,
    Rama
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2809 posts

    Posted 26 May 2008 Link to this post

    Hi Rama,

    We do not provide a property to turn this option off. I can suggest you a workaround using the FormCreated event:

    protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e) 
        if (e.Container.Mode == SchedulerFormMode.AdvancedInsert || 
            e.Container.Mode == SchedulerFormMode.AdvancedEdit) 
        { 
            RadioButton hourly = (RadioButton) e.Container.FindControl("RepeatFrequencyHourly"); 
            hourly.Visible = false
        } 


    Best wishes,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Rama
    Rama avatar
    20 posts
    Member since:
    Apr 2008

    Posted 27 May 2008 Link to this post

    Thank you Tsonev...
  4. Stephen
    Stephen avatar
    40 posts
    Member since:
    Jul 2008

    Posted 18 Dec 2008 Link to this post

    Is there an easy way to find the names of the controls? I'd like to do a similar thing with the Recurring Appointment checkbox.

    I'd also like to find customAttribute textboxes and increase the width of the textbox. I couldn't find it by name so am not sure how I go about that.

    thanks,
    Stephen
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 18 Dec 2008 Link to this post

    Hi Stephen,

    Please, use this kb article as reference:
    http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-access-controls-in-the-advanced-form.aspx


    All the best,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Stephen
    Stephen avatar
    40 posts
    Member since:
    Jul 2008

    Posted 18 Dec 2008 Link to this post

    Thanks for that. I actually found that knowledgebase article about half an hour after I made that post and it was very helpful. 
    I've now got the Recurring appointment hidden or shown depending which Room (resource) the appointment is opened on. 

    I would like to change the visibility if the Room dropdown box is changed, otherwise I may get the situation where the user opens a new appointment for a room that can have recurring appointments, and then changes the dropdown to a room that cannot. A clientside event perhaps? 

    thanks again,
    Stephen
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 20 Dec 2008 Link to this post

    Hi Stephen,

    I am not sure what the desired functionality should be, but you can review the customizing the advanced template example and decide if this can help you achieve your goal:
    http://demos.telerik.com/aspnet-ajax/Scheduler/Examples/AdvancedFormTemplate/DefaultCS.aspx.


    Regards,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. ISCServices
    ISCServices avatar
    3 posts
    Member since:
    Feb 2011

    Posted 26 Aug 2011 Link to this post

    Hi I tried RadioButton hourly = (RadioButton)e.Container.FindControl("RepeatFrequencyHourly") however I am always getting null in object, could be because of  RecurrentAppointment is unchecked initially!! Is there another way to get the same? Basically I am d also wish to disable the hourly option in recurrence Patten however unable to find the same control on form created event. 

  9. Plamen
    Admin
    Plamen avatar
    2933 posts

    Posted 30 Aug 2011 Link to this post

    Hello,

    Here is one way to achieve this functionality that works at my side:
    function OnClientFormCreated(sender, args) {
               var $ = $telerik.$;
               var mode = args.get_mode();
               if(mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert ||
                   mode == Telerik.Web.UI.SchedulerFormMode.AdvancedEdit) {
                   $(".rsRecurrenceOptionList li:eq(0)").hide();             
               }
           }

    Hope this will help.

    All the best,
    Plamen Zdravkov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top