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

Context Menu Disable Default Items not Working

                                       .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()))

1 Reply

BS Buvana Sathasivam Syncfusion Team 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.   

Live Chat Icon For mobile
Up arrow icon