Kendo.Mvc.UI.Fluent.GanttColumnBuilderBase

Defines the fluent interface for configuring columns.

Properties

Column

Gets or sets the column.

Methods

Title(System.String)

Sets the title displayed in the header of the column.

Parameters

text System.String

The text.

Example (ASPX)

<%= Html.Kendo().Gantt(Model)
    .Name("Gantt")
    .Columns(columns => columns.Bound(o => o.OrderID).Title("ID"))
%>

Editable(System.Boolean)

Makes the column editable or not.By default a column is not editable.

Example (ASPX)

<%= Html.Kendo().Gantt(Model)
    .Name("Gantt")
    .Columns(columns => columns.Bound(o => o.OrderID).Editable(true))
%>

Width(System.Int32)

Sets the width of the column in pixels.

Parameters

pixelWidth System.Int32

The width in pixels.

Example (ASPX)

<%= Html.Kendo().Gantt(Model)
    .Name("Gantt")
    .Columns(columns => columns.Bound(o => o.OrderID).Width(100))
%>

Format(System.String)

Gets or sets the format for displaying the data.

Parameters

value System.String

The value.

Example (ASPX)

<%= Html.Kendo().Gantt(Model)
    .Name("Gantt")
    .Columns(columns => columns.Bound(o => o.OrderDate).Format("{0:dd/MM/yyyy}"))
%>

HtmlAttributes(System.Object)

The HTML attributes of the table cell (

) that is rendered for the column.

Parameters

value System.Object

The value that configures the htmlattributes.

HtmlAttributes(System.Collections.Generic.IDictionary<System.String,System.Object>)

The HTML attributes of the table cell (

) that is rendered for the column.

Parameters

value System.Collections.Generic.IDictionary<System.String,System.Object>

The value that configures the htmlattributes.

Expandable(System.Boolean)

If set to true, the column will show the icons that are used for expanding and collapsing child rows. By default, the "title" column of the Gantt is expandable.

Parameters

value System.Boolean

The value that configures the expandable.

Filterable(System.Boolean)

If set to true and if filtering is enabled for the entire Gantt, a filter menu will be displayed for this column. If set to false, the filter menu will not be displayed. By default, a filter menu is displayed for all columns when filtering is enabled through the filterable option. Can be set to a JavaScript object which represents the filter menu configuration.

Parameters

enabled System.Boolean

Enables or disables the filterable option.

Filterable(System.Action<Kendo.Mvc.UI.Fluent.GanttColumnFilterableSettingsBuilder>)

If set to true and if filtering is enabled for the entire Gantt, a filter menu will be displayed for this column. If set to false, the filter menu will not be displayed. By default, a filter menu is displayed for all columns when filtering is enabled through the filterable option. Can be set to a JavaScript object which represents the filter menu configuration.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.GanttColumnFilterableSettingsBuilder>

The action that configures the filterable.

HeaderAttributes(System.Object)

The HTML attributes of the table header cell (

) that is rendered for the column.

Parameters

value System.Object

The value that configures the headerattributes.

HeaderAttributes(System.Collections.Generic.IDictionary<System.String,System.Object>)

The HTML attributes of the table header cell (

) that is rendered for the column.

Parameters

value System.Collections.Generic.IDictionary<System.String,System.Object>

The value that configures the headerattributes.

HeaderTemplate(System.String)

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

Parameters

value System.String

The value that configures the headertemplate.

HeaderTemplateId(System.String)

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

Parameters

value System.String

The value that configures the headertemplate.

Hidden(System.Boolean)

If set to true, the Gantt will not display the column. By default, all columns are displayed.

Parameters

value System.Boolean

The value that configures the hidden.

If set to true, the Gantt will display the column in the column menu. By default, the column menu includes all data-bound columns, that is, the ones with a set field option.

Parameters

value System.Boolean

The value that configures the menu.

MinScreenWidth(System.Double)

The pixel screen width below which the column will be hidden. The setting takes precedence over the hidden setting and the two cannot not be used at the same time.

Parameters

value System.Double

The value that configures the minscreenwidth.

Template(System.String)

The template which renders the column content. The Gantt renders table rows (

) which represent the data source items. Each table row consists of table cells () which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the column.

Parameters

value System.String

The value that configures the template.

TemplateId(System.String)

The template which renders the column content. The Gantt renders table rows (

) which represent the data source items. Each table row consists of table cells () which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the column.

Parameters

value System.String

The value that configures the template.

In this article
Not finding the help you need?