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

Hide Hourly option in RadScheduler

3 Answers 88 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Harsh Mehta
Top achievements
Rank 1
Harsh Mehta asked on 10 Dec 2009, 06:38 PM
How can I hide hourly and yearly option buttons in RadSchedular Advanced edit form? Is there a good example or demo for working with Radschedular advanced edit form.
see attachment for options that I am talking about.

Thanks

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Dec 2009, 03:14 PM
Hi Harsh,

We have replied in the support ticket about this question,  but I will post the reply here for community reference:

The first requirement can be achieved by handling OnClientFormCreated like this:

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

Also, you can include the following css to adjust the height of the recurrence options panel:

.rsAdvRecurrenceFreq
{
    height: auto !important;
}

Here are some resources related to working with the advanced form:

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-access-controls-in-the-advanced-form.aspx

http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx


Regards,

Peter
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Harsh Mehta
Top achievements
Rank 1
answered on 14 Dec 2009, 09:50 PM
Peter,

Thank you very much for your response. this one works like a charm. I was wondering where can I find control names for each of the control or panels on advanced edit form. Is there any documentation which list out control names or Id on that form? I tried doing that Container.FindControl method which takes control name as input. If I don't know control name then I am shooting in the dark in this case.

Also, how do i find list name for each radio button group like you provided me "rsRecurrenceOptionList"?

Thanks

Harsh
0
Veselin Vasilev
Telerik team
answered on 17 Dec 2009, 12:32 PM
Hi Harsh Mehta,

You are right - it would be better if we have such a list. We will try to create one in the future, but in the meantime please use FireBug or IE Dev ToolBar to determine the name as shown in the provided KB article.

Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
Harsh Mehta
Top achievements
Rank 1
Answers by
Peter
Telerik team
Harsh Mehta
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or