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. Image for the cookie policy date
close icon

The classic context menu

Hello!
How can you set a classic context menu instead of RadialMenu?
I have long texts that I can use only in the context menu, eg. Show Patient Card, Show Visit Card, etc.
Regards
Jarek

1 Reply

VR Vigneshkumar Ramasamy Syncfusion Team November 28, 2018 07:03 AM UTC

Hi Jaroslaw Bazarko 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query and your requirement can be achieved by using custom context menu in the schedule control. You can create your own context menu by setting e.Cancel to true in the ContextMenuOpening event. It will avoid opening the default context menu. Please find the below UG link for the same. 
 
 
Also, operations that are done by default context menu can also be performed using Schedule commands. Please find the below UG link for more details about commands. 
 
 
 
       void pasteButton_Click(object sender, RoutedEventArgs e) 
        { 
            RadialPopup.IsOpen = false; 
            ScheduleCommands.PasteCommand.Execute(this.schedule); 
 
        } 
 
        void copyButton_Click(object sender, RoutedEventArgs e) 
        { 
            RadialPopup.IsOpen = false; 
            ScheduleCommands.CopyCommand.Execute(this.schedule); 
            copiedAppointment = schedule.SelectedAppointment; 
        } 
 
        void deleteButton_Click(object sender, RoutedEventArgs e) 
        { 
            RadialPopup.IsOpen = false; 
            ScheduleCommands.DeleteCommand.Execute(this.schedule); 
        } 
 
        void editButton_Click(object sender, RoutedEventArgs e) 
        { 
            RadialPopup.IsOpen = false; 
            ScheduleCommands.EditCommand.Execute(this.schedule); 
        } 
 
        void addButton_Click(object sender, RoutedEventArgs e) 
        { 
            RadialPopup.IsOpen = false; 
            ScheduleCommands.AddNewCommand.Execute(this.schedule); 
        } 
 
 
 
We have prepared a sample with custom context menu and please find the same from below link. You can modify your ouwn context menu. 
 
Sample Link: ScheduleUWP
 
 
Please let us know if this helpful. 
 
Regards 
Vigenshkumar R 


Loader.
Live Chat Icon For mobile
Up arrow icon