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

Disable, hide, or remove Hourly recurrence in RadSchedulerRecurrenceEditor

15 Answers 463 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
K
Top achievements
Rank 1
K asked on 22 Dec 2010, 10:22 PM
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

15 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 23 Dec 2010, 09:16 AM
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.
0
K
Top achievements
Rank 1
answered on 26 Dec 2010, 08:30 PM
Thanks Veronica,

That worked very well.
0
Neha
Top achievements
Rank 1
answered on 17 Feb 2011, 03:36 PM
I want to display recurrence panel by default, instead show/hide on checkbox. Also want to hide checkbox. How to do that?
0
Veronica
Telerik team
answered on 17 Feb 2011, 04:23 PM
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
0
Neha
Top achievements
Rank 1
answered on 17 Feb 2011, 04:44 PM
<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
0
Neha
Top achievements
Rank 1
answered on 17 Feb 2011, 05:33 PM
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
0
Neha
Top achievements
Rank 1
answered on 17 Feb 2011, 10:23 PM
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 ;"
0
Veronica
Telerik team
answered on 21 Feb 2011, 12:55 PM
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!
0
Robert
Top achievements
Rank 1
answered on 15 Mar 2011, 09:29 PM

$(

 

".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,
0
Veronica
Telerik team
answered on 18 Mar 2011, 10:23 AM
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
0
Tiffany Phan
Top achievements
Rank 1
answered on 09 May 2011, 04:46 PM
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!
0
Veronica
Telerik team
answered on 11 May 2011, 09:38 AM
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.

0
Tanvir
Top achievements
Rank 1
answered on 09 Jan 2018, 03:04 PM

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

Thank you

0
Tanvir
Top achievements
Rank 1
answered on 09 Jan 2018, 03:05 PM

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

Thank you

0
Rumen
Telerik team
answered on 10 Jan 2018, 01:07 PM
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.
Tags
Scheduler
Asked by
K
Top achievements
Rank 1
Answers by
Veronica
Telerik team
K
Top achievements
Rank 1
Neha
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Tiffany Phan
Top achievements
Rank 1
Tanvir
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or