New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for adding items to Kendo ContextMenu for ASP.NET MVC

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ContextMenuItemFactory

Inheritance: objectContextMenuItemFactory

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ContextMenuItemFactory class.

C#
public ContextMenuItemFactory(INavigationItemContainer<ContextMenuItem> container, ViewContext viewContext)
Parameters:containerINavigationItemContainer<ContextMenuItem>

The container.

viewContextViewContext

The view context.

Methods

Adds an item.

C#
public ContextMenuItemBuilder Add()
Returns:

ContextMenuItemBuilder

Returns a ContextMenuItemBuilder with the available configuration options.