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

Defines the fluent API for configuring the PDFViewerToolbarSettingsItem settings.

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PDFViewerToolbarSettingsItem : JsonObject

Inheritance: objectJsonObjectPDFViewerToolbarSettingsItem

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

Constructors

Initialization for the PDFViewerToolbarSettingsItem

C#
public PDFViewerToolbarSettingsItem(string toolName = null)
Parameters:toolNamestring

Properties

Specifies the click event handler of the button.

C#
public ClientHandlerDescriptor Click { get; set; }

Default commands in the PDF Viewer are: OpenCommand; PageChangeCommand; DownloadCommand; EnableSelectionCommand; EnablePanCommand or ExportCommand.

C#
public string Command { get; set; }

Specifies whether the control is initially enabled or disabled. Default value is "true".

C#
public bool? Enable { get; set; }

Determines if a button is visible or hidden. By default buttons are visible.

C#
public bool? Hidden { get; set; }

Specifies the HTML attributes of a ToolBar button.

C#
public IDictionary<string, object> HtmlAttributes { get; set; }

Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.

C#
public string Icon { get; set; }

Specifies the ID of the button.

C#
public string Id { get; set; }

If set, the ToolBar will render an image with the specified URL in the button.

C#
public string ImageUrl { get; set; }

Specifies the tool's name. Tool definition will be taken from the default collection - kendo.pdfviewer.DefaultTools

C#
public string Name { get; set; }

Specifies the overflow behavior of the toolbar item. Accepts auto, never, or always to control when the item appears in the toolbar's overflow menu.

C#
public string Overflow { get; set; }

Specifies whether the button is primary. Primary buttons receive different styling.

C#
public bool? Primary { get; set; }

Specifies where the button icon will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).

C#
public string ShowIcon { get; set; }

Specifies where the text will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).

C#
public string ShowText { get; set; }

Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.

C#
public string SpriteCssClass { get; set; }

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

C#
public string Template { get; set; }

The handler for the Template

C#
public string TemplateHandler { get; set; }

The id for the Template

C#
public string TemplateId { get; set; }

Sets the text of the button.

C#
public string Text { get; set; }

Specifies if the button is togglable, e.g. has a selected and unselected state.

C#
public bool? Togglable { get; set; }

Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.

C#
public ClientHandlerDescriptor Toggle { get; set; }

Specifies the type of toolbar item to be rendered. Supported types include button, separator, spacer, splitButton, buttonGroup, and template as defined by the ToolBar component.

C#
public string Type { get; set; }

Methods

Serialize current instance to Dictionary

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)