Kendo.Mvc.UI.Fluent.GanttColumnBuilder

Defines the fluent API for configuring GanttColumn

Methods

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}"))
%>

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 for 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

templateId System.String

The ID of the template element for HeaderTemplate

Width(System.Double)

The width of the column. Numeric values are treated as pixels.

Parameters

value System.Double

The value for Width

Sortable(System.Action<Kendo.Mvc.UI.Fluent.GanttColumnSortableSettingsBuilder>)

Sortable configuration

Parameters

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

The action that configures the filterable.

Sortable

If set to true the user could sort this column by clicking its header cells. By default sorting is disabled.

Sortable(System.Boolean)

If set to true the user could sort this column by clicking its header cells. By default sorting is disabled.

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 for 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

templateId System.String

The ID of the template element for Template

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 for HtmlAttributes

HtmlAttributes(System.Object)

The HTML attributes of the table cell (

) that is rendered for the column.

Parameters

value System.Object

The value for HtmlAttributes

Editable(System.Boolean)

Specifies whether this column can be edited by the user.

Parameters

value System.Boolean

The value for Editable

Editable

Specifies whether this column can be edited by the user.

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 for Expandable

Expandable

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.

Field(System.String)

The field to which the column is bound. The value of this field is displayed by the column during data binding.The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start with a digit.

Parameters

value System.String

The value for Field

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

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 configurator for the filterable setting.

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.

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 for HeaderAttributes

HeaderAttributes(System.Object)

The HTML attributes of the table header cell (

) that is rendered for the column.

Parameters

value System.Object

The value for HeaderAttributes

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 for Hidden

Hidden

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

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 for 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 for MinScreenWidth

Title(System.String)

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

Parameters

value System.String

The value for Title

Width(System.String)

The width of the column. Numeric values are treated as pixels.

Parameters

value System.String

The value for Width

In this article
Not finding the help you need?