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.
Unfortunately, activation email could not send to your email. Please try again.

Context Menu Disable Default Items not Working

Thread ID:

Created:

Updated:

Platform:

Replies:

132081 Aug 12,2017 06:22 AM Aug 14,2017 05:17 AM ASP.NET MVC 1
loading
Tags: Kanban
Musab Adnan Basheer
Asked On August 12, 2017 06:22 AM

@(Html.EJ().Kanban("Orders")
                                       .DataSource(Model)
                                       .ClientSideEvents(eve => eve.ContextClick("click"))
                                       .Columns(col =>
                                       {
                                           col.HeaderText("Need To Be Reviewed").Key("OrderItemsNeedToBeReviewed").Add();
                                           col.HeaderText("Submitted").Key("Submitted").Add();
                                           col.HeaderText("Accepted").Key("Accepted").Add();
                                           col.HeaderText("In Delivery").Key("InDelivery").Add();
                                           col.HeaderText("Delivered").Key("Delivered").Add();
                                           col.HeaderText("Canceled").Key("Canceled").Add();
                                       })
                                      .AllowTitle(true)
                                      .AllowDragAndDrop(false)
                                  .KeyField("Status")
                          .Locale("en-US")
                                  .Fields(field =>
                                  {
                                      field.Color("#ee2662")
                                           .Title("Title")
                                           .Content("Content")
                                           .SwimlaneKey("Swimlane")
                                           .PrimaryKey("Id");
                                  }).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 05:17 AM

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.  
 
KanbanFeature.cshtml  
 
@(Html.EJ().Kanban("Kanban")  
        ………  
.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.  
  
Regards,   
Buvana S.   
 


CONFIRMATION

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.

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.

;