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

Defines the fluent API for configuring the FileManagerToolbarSettingsItem settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class FileManagerToolbarSettingsItemBuilder

Inheritance: objectFileManagerToolbarSettingsItemBuilder

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

Constructors

C#
public FileManagerToolbarSettingsItemBuilder(FileManagerToolbarSettingsItem settings)
Parameters:settingsFileManagerToolbarSettingsItem

The FileManagerToolbarSettingsItem

Methods

Specifies the click handler of the button.

C#
public FileManagerToolbarSettingsItemBuilder Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The value that configures the click action.

Returns:

FileManagerToolbarSettingsItemBuilder

Specifies the click handler of the button.

C#
public FileManagerToolbarSettingsItemBuilder Click(string handler)
Parameters:handlerstring

The value that configures the click action.

Returns:

FileManagerToolbarSettingsItemBuilder

Specifies the command of the button.

C#
public FileManagerToolbarSettingsItemBuilder Command(string value)
Parameters:valuestring

The value that configures the command.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder Enable(bool value)
Parameters:valuebool

The value that configures the enable.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder Hidden(bool value)
Parameters:valuebool

The value that configures the hidden.

Returns:

FileManagerToolbarSettingsItemBuilder

Specifies the HTML attributes of a ToolBar button.

C#
public FileManagerToolbarSettingsItemBuilder HtmlAttributes(IDictionary<string, object> value)
Parameters:valueIDictionary<string, object>

The value that configures the htmlattributes.

Returns:

FileManagerToolbarSettingsItemBuilder

Specifies the HTML attributes of a ToolBar button.

C#
public FileManagerToolbarSettingsItemBuilder HtmlAttributes(object value)
Parameters:valueobject

The value that configures the htmlattributes.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

FileManagerToolbarSettingsItemBuilder

Specifies the ID of the button.

C#
public FileManagerToolbarSettingsItemBuilder Id(string value)
Parameters:valuestring

The value that configures the id.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder ImageUrl(string value)
Parameters:valuestring

The value that configures the imageurl.

Returns:

FileManagerToolbarSettingsItemBuilder

Specifies the name of the button.

C#
public FileManagerToolbarSettingsItemBuilder Name(string value)
Parameters:valuestring

The value that configures the name.

Returns:

FileManagerToolbarSettingsItemBuilder

Specifies the command options of the button.

C#
public FileManagerToolbarSettingsItemBuilder Options(string value)
Parameters:valuestring

The value that configures the options.

Returns:

FileManagerToolbarSettingsItemBuilder

Specifies the overflow of the button.

C#
public FileManagerToolbarSettingsItemBuilder Overflow(string value)
Parameters:valuestring

The value that configures the overflow.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder Primary(bool value)
Parameters:valuebool

The value that configures the primary.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder ShowIcon(string value)
Parameters:valuestring

The value that configures the showicon.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder ShowText(string value)
Parameters:valuestring

The value that configures the showtext.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder SpriteCssClass(string value)
Parameters:valuestring

The value that configures the spritecssclass.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder Template(string value)
Parameters:valuestring

The value that configures the template.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder TemplateHandler(string value)
Parameters:valuestring

The value that configures the template.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder TemplateId(string value)
Parameters:valuestring

The value that configures the template.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template.

Returns:

FileManagerToolbarSettingsItemBuilder

Sets the text of the button.

C#
public FileManagerToolbarSettingsItemBuilder Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

FileManagerToolbarSettingsItemBuilder

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

C#
public FileManagerToolbarSettingsItemBuilder Togglable(bool value)
Parameters:valuebool

The value that configures the togglable.

Returns:

FileManagerToolbarSettingsItemBuilder

Specifies the type of the button.

C#
public FileManagerToolbarSettingsItemBuilder Type(string value)
Parameters:valuestring

The value that configures the type.

Returns:

FileManagerToolbarSettingsItemBuilder