Disable, hide, or remove Hourly recurrence in RadSchedulerRecurrenceEditor

16 posts, 0 answers
  1. K
    K avatar
    11 posts
    Member since:
    Jul 2010

    Posted 22 Dec 2010 Link to this post

    Hello,

    I'm attempting to create a task scheduler and would rather not offer the ability to schedule hourly tasks.   Is there a way to configure the recurrence editor to hide or disable that option?


    Thanks
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 23 Dec 2010 Link to this post

    Hello K,

    You can subscribe to the OnClientFormCreated event and use the following code in the handler:

    function OnClientFormCreated(sender, eventArgs) {
              $telerik.$(".rsRecurrenceOptionList li:first-child").hide();
          }

    Please let me know if this was helpful.

    Greetings,
    Veronica Milcheva
    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.
  3. K
    K avatar
    11 posts
    Member since:
    Jul 2010

    Posted 26 Dec 2010 Link to this post

    Thanks Veronica,

    That worked very well.
  4. Neha
    Neha avatar
    21 posts
    Member since:
    Jan 2011

    Posted 17 Feb 2011 Link to this post

    I want to display recurrence panel by default, instead show/hide on checkbox. Also want to hide checkbox. How to do that?
  5. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 17 Feb 2011 Link to this post

    Hello K,

    To be able to hide the recurrence checkbox and the label - use the following CSS:

    .rsAdvChkWrap
           {
               visibility : hidden !important;
           }

    For checking the checkbox and displaying the Recurrence Panel by default use this jQuery:

    function pageLoad() {
                var $ = $telerik.$;
                $(".RecurrenceEditor").children().each(function(i) {
                    if (i == 0)
                        $($($(this).children()[0]).children()[0]).attr("checked", "checked");
                    else if (i == 1)
                        this.style.display = "block";
                });
            }

    Hope this helps.

    Regards,
    Veronica Milcheva
    the Telerik team
  6. Neha
    Neha avatar
    21 posts
    Member since:
    Jan 2011

    Posted 17 Feb 2011 Link to this post

    <script type="text/javascript">
      
      
    function pageLoad() { 
      
    var$ = $telerik.$; 
      
    $(".RecurrenceEditor").children().each(function(i) { 
      
    if(i == 0) 
      
    $($($(this).children()[0]).children()[0]).attr("checked", "checked"); 
      
    else if(i == 1) 
      
    this.style.display = "block"
      
    }); 
      
    }
      
    </script>
    protected void Page_Load(object sender, EventArgs e)
           {
                          Page.ClientScript.RegisterStartupScript(Type.GetType("System.String"), "addScript", "pageLoad()", true);
           }
    Veronica,

    I changed code according to your response. Check above.I am unable to show RecuuranceEditor by default. Check the screen shot. I also tried adding css, which worked fine but i can't see editor

    I am not sure what I am doing wrong.

    Thanks
  7. Neha
    Neha avatar
    21 posts
    Member since:
    Jan 2011

    Posted 17 Feb 2011 Link to this post

    Veronica,

    I found the bug in my code. Now it's working fine. Ignore the issue which i posted before with screen shot.

    Thanks
    Neha
  8. Neha
    Neha avatar
    21 posts
    Member since:
    Jan 2011

    Posted 17 Feb 2011 Link to this post

    Hi Veronica,

    Whenever I call script...IE7 shows me some script error and because of that End Date Dtp Control not load properly.

    Check the screenshot. Script error says - "Expected ;"
  9. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 21 Feb 2011 Link to this post

    Hello K,

    You don't need to register the pageLoad() function in the Page_Load event :

    protected void Page_Load(object sender, EventArgs e) 
           
                          Page.ClientScript.RegisterStartupScript(Type.GetType("System.String"), "addScript", "pageLoad()", true); 
           }

    as it will fire by default. I've sent you a sample project demonstrating the solution in my previous post.

    Please take a look at tit and let me know if you have further questions.

    Greetings,
    Veronica Milcheva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  10. Robert
    Robert avatar
    7 posts
    Member since:
    Jun 2010

    Posted 15 Mar 2011 Link to this post


    $(

     

    ".rsRecurrenceOptionList li:first-child").hide();

     


    This was very helpful for hidding hourly as well as the code for Recurrence Checkbox.  Thank you

    I also want to hide "No End Date" while leaving "End After" and "End By".  However, I'm having difficulty hiding the label since .rsAdvRadio is used often.  I was able to hide the option button by finding the id of the control but there is no id for the label of that option button.

    What's the code to hide "No End Date" option and label?

    Thanks,
  11. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 18 Mar 2011 Link to this post

    Hi Robert,

    Please take a look at this forum post for a solution to hide the "No End Date" option in the Recurrence Editor.

    All the best,
    Veronica Milcheva
    the Telerik team
  12. Tiffany Phan
    Tiffany Phan avatar
    17 posts
    Member since:
    Feb 2007

    Posted 09 May 2011 Link to this post

    I found this code to remove Hourly recurrence.  It's very helpful.  Thanks.
    However, I want to hide Saturday and Sunday checkbox of Weekly recurrence in RadSchedulerRecurrenceEditor.  How can I find the elements of Weekly recurrence.  Please help!
  13. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 11 May 2011 Link to this post

    Hello Tiffany,

    I already answered you in this forum post.
    Please do not open more than one thread per issue.

    We are doing our best to answer all your questions.

    Greetings,
    Veronica Milcheva
    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.

  14. Tanvir
    Tanvir avatar
    7 posts
    Member since:
    Apr 2013

    Posted 09 Jan in reply to K Link to this post

    I would like to remove Recurrence from the advanced form. How can i do it ?

    Thank you

  15. Tanvir
    Tanvir avatar
    7 posts
    Member since:
    Apr 2013

    Posted 09 Jan in reply to K Link to this post

    I would like to remove recurrence drop down from advance form. How can i implement it ?

    Thank you

  16. Rumen
    Admin
    Rumen avatar
    13469 posts

    Posted 10 Jan Link to this post

    Hello Tanvir,

    You can see how to customize the Advanced Form in this demo.

    Set the Visible property of the telerik:RadSchedulerRecurrenceEditor control to false, i.e.

    <telerik:RadSchedulerRecurrenceEditor runat="server" ID="AppointmentRecurrenceEditor" Visible="false" RenderMode="Lightweight" />

    For your convenience I recorded a video of how to do that and attached it my reply.

    Best regards,
    Rumen
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top