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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Only custom items in ContextMenu

Thread ID:





121467 Dec 17,2015 11:31 AM UTC Dec 18,2015 10:38 AM UTC ASP.NET Web Forms 1
Tags: Grid
Jorge Pampin
Asked On December 17, 2015 11:31 AM UTC


I have this code:

Grid.ContextMenuSettings = new Syncfusion.JavaScript.Models.ContextSettings();
Grid.ContextMenuSettings.EnableContextMenu = true;
Grid.ContextMenuSettings.ContextMenuItems = new List<string>();
Grid.ContextMenuSettings.CustomContextMenuItem.Add('Custom item');

But the ContextMenu shows the default items and custom items, and I want only the custom items, how to do this?


Saravanan Arunachalam [Syncfusion]
Replied On December 18, 2015 10:38 AM UTC

Hi Jorge,

Thanks for contacting Syncfusion support.

If you need to show only the custom menu items, we suggest you to add empty string in the contextMenuItem List of Grid control. Please refer to the below code example and online documentation link.

        protected void Page_Load(object sender, EventArgs e)


             . . .

            Grid.ContextMenuSettings.ContextMenuItems = new List<string>();

            //Add empty string in the ContextMenuItems List to show only custom items


            . . .





Saravanan A.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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