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

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

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PDFViewerToolbarSettingsItemFactory

Inheritance: objectPDFViewerToolbarSettingsItemFactory

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 PDFViewerToolbarSettingsItemFactory class.

C#
public PDFViewerToolbarSettingsItemFactory(List<PDFViewerToolbarSettingsItem> container)
Parameters:containerList<PDFViewerToolbarSettingsItem>

The container.

Methods

Adds an item to the collection

C#
public virtual PDFViewerToolbarSettingsItemBuilder Add()
Returns:

PDFViewerToolbarSettingsItemBuilder

Returns a PDFViewerToolbarSettingsItemBuilder with the available configuration options.

Adds an item to the ToolBar.

C#
public virtual PDFViewerToolbarSettingsItemBuilder Add(string toolName)
Parameters:toolNamestring

The value that configures the tool name.

Returns:

PDFViewerToolbarSettingsItemBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Toolbar(toolbar =&gt;
toolbar.Items(items =&gt;
{
items.Add("pager");
})
)
)