Hide Hourly option in RadScheduler

4 posts, 0 answers
  1. Harsh Mehta
    Harsh Mehta avatar
    6 posts
    Member since:
    Dec 2009

    Posted 10 Dec 2009 Link to this post

    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

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Dec 2009 Link to this post

    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.
  3. Harsh Mehta
    Harsh Mehta avatar
    6 posts
    Member since:
    Dec 2009

    Posted 14 Dec 2009 Link to this post

    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
  4. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 17 Dec 2009 Link to this post

    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.
Back to Top