We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the Context menu in SfSchedule?

Context menu is easily customized by overriding the default Context menu of the control. This article explains you how to customize the default menu that is used in SfSchedule.

For Customizing the Popup menu in SfSchedule

Create a WinRT application and add SfSchedule control in it.

XAML

In this article, you can display a popup containing a radial menu with all the actions that the default menu of the schedule has.

Using the Icon property of the RadialMenu, you can customize the icons displayed in the center of RadialMenu circle.

Refer to the following code example with customized SfRadialMenuItem.

XAML

The above popup is added in the application next to schedule and its IsOpen property can be handled based on the context menu event of schedule and OnPointerPressed events of the application.

Using ContextMenuOpening event of SfSchedule, you can avoid the opening of default menu selection by setting the Cancel property as true and your customized menu (RadialPopup) can be shown as menu for the schedule.

The customized menu placement can be handled using the position values present in the argument of the event.

C#

Using the OnPointerPressed event of the application, the RadialPopup is closed.

C#

By clicking SfRadialMenuItem of Add in Popup, addButton_Click event adds the appointments in Schedule.

C#

By clicking SfRadialMenuItem of Edit in Popup, editButton _Click event edits the appointments in Schedule.

C#

By clicking SfRadialMenuItem of Delete in Popup, deleteButton _Click event deletes the saved appointments in Schedule.

C#

By clicking SfRadialMenuItem of Copy in Popup, copyButton _Click event copies the selected appointment in Schedule.

C#

By clicking SfRadialMenuItem of Paste in Popup, pasteButton _Click event pastes the copied appointment in Schedule.

C#

Sample Location (In WinRT SB): WinRT->Schedule->CustomizationDemo

 

Article ID: Published Date: Last Revised Date: Platform: Control:
2686 11/17/2014 11/18/2014 WinRT SfSchedule
Tags:
Did you find this information helpful?
Comments
Yassine MORSAOUI Sep 26, 2017

hello, 
could you please atach the link to the sample above ? 
Thanks.

Reply
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon