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

Replace Timeline Button with Add Button

2 Answers 98 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 11 Nov 2010, 05:06 AM
Hello,

I would like to replace the Timeline Button with an Add Button. When the add button is selected I'd like to bring up the new appointment dialog.

Thanks,

Scott

2 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 16 Nov 2010, 04:11 PM
Hi Scott,

At first you need to rename the "Timeline" button with "Add". This can be done by setting:

Localization-HeaderTimeline="Add"

Secondly you can subscribe to the OnNavigationCommand event and check if the "Timeline" button is clicked. If this is true - you need to cancel the event and open the Advanced Form to start inserting an appointment. Here's the code for this:

protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)
    {
        if (e.Command == SchedulerNavigationCommand.SwitchToTimelineView)
        {
            e.Cancel = true;
            RadScheduler1.ShowAdvancedInsertForm(DateTime.Now);
        }
    }

Please let me know if this was helpful.

Greetings,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jumpstart 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
Scott
Top achievements
Rank 1
answered on 17 Nov 2010, 10:23 PM
Veronica,

It worked like a charm! Thank you so much!

-scott
Tags
Scheduler
Asked by
Scott
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Scott
Top achievements
Rank 1
Share this question
or