how to Add Weeklink and '+' button in scheduler Monthview

4 posts, 0 answers
  1. Saimadhukar
    Saimadhukar avatar
    31 posts
    Member since:
    Sep 2011

    Posted 29 Nov 2011 Link to this post

    Hello,

    i have been working on calendar functionality using rad scheduler ,and come across some requirements and want to know if its possible using Radscheduler.
    1)In month view screen an additional column can be provided at the beginning with 'Week' link. Click on this should lead to the week    view.
    2)All the days in week and month view must have a '+' symbol. Click on this will lead user to create event page with selected date auto populated.

    below i am sending an image  of above two requirements  and i want to know how to do this in radscheduler  please reply soon ,thanks in advance.

    Regards,
    Madhukar.
  2. Plamen
    Admin
    Plamen avatar
    3056 posts

    Posted 30 Nov 2011 Link to this post

    Hi Saimadhukar,

    The first functionality is not supported by RadScheduler so I will recommend you to add the "Week" buttons separately with the following specifications:
    •   -visible only when the scheduler is in month view
    •   -on click set the SelectedView and the SelectedDate according to the current ones

    A similar to the second issue can be observed at the Customizing the TimeSlots demo. Just instead of the Label "countLabel"  you can add a button at position "0" and set its position with css:
    e.TimeSlot.Control.Controls.AddAt(0, countLabel);

    Hope this will be helpful.

    Kind regards,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. Saimadhukar
    Saimadhukar avatar
    31 posts
    Member since:
    Sep 2011

    Posted 02 Dec 2011 Link to this post

    hello Plamen ,

    i have added the css given there in link and added a button to scheduler in monthview with below given code but we are getting button
     like the image i havesend i want the button to be shown on top of scheduler where the day  numbers are given on the right to them is there any solution please reply soon button
    protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
        {
            Button btnaddEvent = new Button();
            btnaddEvent.Text = "Add new event";
            btnaddEvent.CssClass = "FloatRight";
            e.TimeSlot.Control.Controls.AddAt(0, btnaddEvent);
        }  
    css:
      
     .FloatRight
            {
                padding: 5px 0px 5px !important;
                background-color: #e5e5e5 !important;
                color: #767676 !important;
                float: right;
                 
                  
            }
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 07 Dec 2011 Link to this post

    Hi Saimadhukar,

    Please, try the following -

    e.TimeSlot.Control.Controls[0].Controls.AddAt(0, btnaddEvent);

    Also, you can remove the padding from the FloatRight css so that the button fits on the same line as the date.


    Kind regards,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top