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

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

3 Answers 96 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Saimadhukar
Top achievements
Rank 1
Saimadhukar asked on 29 Nov 2011, 11:41 AM
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.

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 30 Nov 2011, 01:11 PM
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
0
Saimadhukar
Top achievements
Rank 1
answered on 02 Dec 2011, 03:33 PM
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;
             
              
        }
0
Peter
Telerik team
answered on 07 Dec 2011, 10:09 AM
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
Tags
Scheduler
Asked by
Saimadhukar
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Saimadhukar
Top achievements
Rank 1
Peter
Telerik team
Share this question
or