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

Context Menu Disable Default Items not Working

Thread ID:





132081 Aug 12,2017 10:22 AM UTC Aug 14,2017 09:17 AM UTC ASP.NET MVC 1
Tags: Kanban
Musab Adnan Basheer
Asked On August 12, 2017 10:22 AM UTC

                                       .ClientSideEvents(eve => eve.ContextClick("click"))
                                       .Columns(col =>
                                           col.HeaderText("Need To Be Reviewed").Key("OrderItemsNeedToBeReviewed").Add();
                                           col.HeaderText("In Delivery").Key("InDelivery").Add();
                                  .Fields(field =>
                                  }).ContextMenuSettings(menu => menu.DisableDefaultItems(a => a.Add(KanbanContextMenuItem.DeleteCard)).CustomMenuItems(custom => custom.Text("Details").Target(ContextTarget.Card).Add()))

Buvana Sathasivam [Syncfusion]
Replied On August 14, 2017 09:17 AM UTC

Hi Musab Adnan Basheer,  
Thanks for using Syncfusion Products.  
We have created Kanban sample with context menu disabled default item.  We will disable default item of delete card and enable context menu option.  Please refer to the following code.  
.ContextMenuSettings(menu => menu.Enable(true)   // Enable context menu settings  
                                 .DisableDefaultItems(a =>                                                    a.Add(KanbanContextMenuItem.DeleteCard))         // Set disable default items  
                                 .CustomMenuItems(custom => custom.Text("Details").Target(ContextTarget.Card).Add()))  // Custom text  
Please check the sample and let you know if we misunderstood any of your requirements.  If so, provide us more details regarding your requirement.  So that, we can check and provide you the best solution.    
Please let us know if you have any concerns.  
Buvana S.   


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