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

Defines the fluent API for configuring FileManagerViewsGridSettingsColumn

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class FileManagerViewsGridSettingsColumnBuilder

Inheritance: objectFileManagerViewsGridSettingsColumnBuilder

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

Constructors

FileManagerViewsGridSettingsColumnBuilder method.

C#
public FileManagerViewsGridSettingsColumnBuilder(FileManagerViewsGridSettingsColumn container)
Parameters:containerFileManagerViewsGridSettingsColumn

Properties

Gets the settings being configured.

C#
protected FileManagerViewsGridSettingsColumn Container { get; }

Methods

If set to true the column value will be HTML-encoded before it is displayed. If set to false the column value will be displayed as is. By default the column value is HTML-encoded.

C#
public FileManagerViewsGridSettingsColumnBuilder Encoded(bool value)
Parameters:valuebool

The value for Encoded

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

The text that is displayed in the column header cell. If not set the field is used.

C#
public FileManagerViewsGridSettingsColumnBuilder Field(string value)
Parameters:valuestring

The value that configures the width.

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Views(views => views
.Grid(grid => grid
.Columns(columns =>
{
columns.Add().Field("name");
})
)
)
)

The template which renders the column header content. By default the value of the title column option is displayed in the column header cell.

C#
public FileManagerViewsGridSettingsColumnBuilder HeaderTemplate(string value)
Parameters:valuestring

The value for HeaderTemplate

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

The template which renders the column header content. By default the value of the title column option is displayed in the column header cell.

C#
public FileManagerViewsGridSettingsColumnBuilder HeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the headertemplate.

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

The template which renders the column header content. By default the value of the title column option is displayed in the column header cell.

C#
public FileManagerViewsGridSettingsColumnBuilder HeaderTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for HeaderTemplate

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

The template which renders the column header content. By default the value of the title column option is displayed in the column header cell.

C#
public FileManagerViewsGridSettingsColumnBuilder HeaderTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for HeaderTemplate

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

The template which renders the column header content. By default the value of the title column option is displayed in the column header cell.

C#
public FileManagerViewsGridSettingsColumnBuilder HeaderTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for HeaderTemplate

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column.

C#
public FileManagerViewsGridSettingsColumnBuilder Sortable(bool value)
Parameters:valuebool

The value for Sortable

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column.

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

The value for Template

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column.

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

A Template component that configures the template.

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column.

C#
public FileManagerViewsGridSettingsColumnBuilder TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column.

C#
public FileManagerViewsGridSettingsColumnBuilder TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

If set to true the user can click the column header and sort the grid by the column field when sorting is enabled. If set to false sorting will be disabled for this column.

C#
public FileManagerViewsGridSettingsColumnBuilder TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

The text that is displayed in the column header cell. If not set the field is used.

C#
public FileManagerViewsGridSettingsColumnBuilder Title(string value)
Parameters:valuestring

The value for Title

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.

The text that is displayed in the column header cell. If not set the field is used.

C#
public FileManagerViewsGridSettingsColumnBuilder Width(double value)
Parameters:valuedouble

The value for Width

Returns:

FileManagerViewsGridSettingsColumnBuilder

Returns the current FileManagerViewsGridSettingsColumnBuilder instance.