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

How can I get Schedule ResourceName at radialmenu button click


I am having trouble getting Schedule Column's ResourceName at Radialmenu ADD button click. Can you guide me how can I achieve this.


3 Replies

VR Vigneshkumar Ramasamy Syncfusion Team August 31, 2015 12:23 PM UTC

Hi Muhammad,

Thanks for using Syncfusion product.

As now your requirement of getting Resource name through context menu can be achieved by using AppointmentEditorOpening event or ContextMenuOpening event. Based on your requirement we have created a simple sample using AppointmentEditorOpening event .Please find the sample in the below link.

Sample Link: Schedule_ResourceName


In the above sample we have displayed resource name using e.SelectedResource argument in the AppointmentEditorOpening event. Please refer the below code snippet.

async void schedule_AppointmentEditorOpening(object sender, Syncfusion.UI.Xaml.Schedule.AppointmentEditorOpeningEventArgs e)


             string Rname = (e.SelectedResource[0] as Resource).DisplayName;

             MessageDialog MD= new MessageDialog("Selected resouce name="+Rname);

             await MD.ShowAsync();



Please let us know if you have any concerns.


Vigneshkumar R.

MM Muhammad Mobeen September 2, 2015 09:08 AM UTC

Hello Vigneshkumar R,

Thanks for your kind reply. But in this demo I can't able to handle Delete button click.
Can you guide me how can I capture Delete event. I am not using Scheduler Default Editor.

My code is

 private void SfSchedule1_AppointmentEditorOpening_1(object sender, Syncfusion.UI.Xaml.Schedule.AppointmentEditorOpeningEventArgs e)
                Appointment obj = (Appointment)e.Appointment;

                if (e.Action == EditorAction.Add)
                    //for avoid showing of default editor
                    e.Cancel = true;
                else if (e.Action == EditorAction.Edit)
                    //For avoid showing of default editor
                    e.Cancel = true;
                else if (e.Action == EditorAction.Delete)
                    e.Cancel = true;

            catch (Exception ex)
            {  }

ADD and Edit works fine but Delete not working.

NM Nijamudeen Mohamed Sulaiman Syncfusion Team September 3, 2015 10:32 AM UTC

Hi Muhammad,

As of now we don’t have support for getting delete event from default Context menu of Schedule control. But your requirement can be achieved by overriding the default radial menu of Schedule. Please refer the below KB articles for more details

KB Link: http://www.syncfusion.com/kb/2686/how-to-customize-the-context-menu-in-sfschedule

Please let me know, if you have any query.

Nijamudeen M.

Live Chat Icon For mobile
Up arrow icon