Remove the "New Recurring Appointment" from the right click context menu

3 posts, 1 answers
  1. Chad
    Chad avatar
    11 posts
    Member since:
    Apr 2011

    Posted 20 Aug 2011 Link to this post

    i have not yet implemented the recurring appointment logic in my app, and i was curious if there was a way to remove just the options int he right click context menu that refer to "Recurring" functions ?
  2. Answer
    Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 22 Aug 2011 Link to this post

    Hello Chad,

    Thank you for your question.

    You can hide this menu item by handling the ContextMenuShowing event and setting the item's visibility as shown in the following code snippet:

    void radScheduler1_ContextMenuShowing(object sender, SchedulerContextMenuShowingEventArgs e)
        e.ContextMenu.Items[2].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    Hope this helps. Feel free to ask if you have any further questions.

    Ivan Todorov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. Chad
    Chad avatar
    11 posts
    Member since:
    Apr 2011

    Posted 23 Aug 2011 Link to this post

    perfect, thank you !  never even thought of doing that, even after i did basically the same thing for the edit dialog ...
Back to Top