Defines the fluent interface for configuring columns.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TColumn
TColumnBuilder
The type of the column builder.
Syntax:
public abstract class GanttColumnBuilderBase<TColumn, TColumnBuilder> where TColumn : IGanttColumn where TColumnBuilder : GanttColumnBuilderBase<TColumn, TColumnBuilder>
Inheritance: objectGanttColumnBuilderBase<TColumn, TColumnBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the GanttColumnBuilderBase<TColumn, TColumnBuilder> class.
protected GanttColumnBuilderBase(TColumn column)
The column.
Properties
Column
TColumn
Gets or sets the column.
public TColumn Column { get; }
The column.
Methods
Makes the column editable or not.By default a column is not editable.
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.
public TColumnBuilder Expandable(bool value)
The value that configures the expandable.
Returns:TColumnBuilder
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.
public TColumnBuilder Filterable(Action<GanttColumnFilterableSettingsBuilder> configurator)
The action that configures the filterable.
Returns:TColumnBuilder
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.
public TColumnBuilder Filterable(bool enabled)
Enables or disables the filterable option.
Returns:TColumnBuilder
Gets or sets the format for displaying the data.
public TColumnBuilder Format(string value)
The value.
Returns:TColumnBuilder
The HTML attributes of the table header cell (<th>) that is rendered for the column.
public TColumnBuilder HeaderAttributes(IDictionary<string, object> value)
The value that configures the headerattributes.
Returns:TColumnBuilder
The HTML attributes of the table header cell (<th>) that is rendered for the column.
public TColumnBuilder HeaderAttributes(object value)
The value that configures the headerattributes.
Returns:TColumnBuilder
The template which renders the column header content. By default, the value of the title column option is displayed in the column header cell.
public TColumnBuilder HeaderTemplate(string value)
The value that configures the headertemplate.
Returns:TColumnBuilder
The template which renders the column header content. By default, the value of the title column option is displayed in the column header cell.
public TColumnBuilder HeaderTemplate(TemplateBuilder<dynamic> template)
The content of the column.
Returns:TColumnBuilder
The template which renders the custom content of the Header.
public TColumnBuilder HeaderTemplateHandler(string value)
The value that configures the template.
Returns:TColumnBuilder
The template which renders the column header content. By default, the value of the title column option is displayed in the column header cell.
public TColumnBuilder HeaderTemplateId(string value)
The value that configures the headertemplate.
Returns:TColumnBuilder
The template which renders the column header content. By default, the value of the title column option is displayed in the column header cell.
public TColumnBuilder HeaderTemplateView(MvcHtmlString value)
The value that configures the headertemplate.
Returns:TColumnBuilder
If set to true, the Gantt will not display the column. By default, all columns are displayed.
public TColumnBuilder Hidden(bool value)
The value that configures the hidden.
Returns:TColumnBuilder
The HTML attributes of the table cell (<td>) that is rendered for the column.
public TColumnBuilder HtmlAttributes(IDictionary<string, object> value)
The value that configures the htmlattributes.
Returns:TColumnBuilder
The HTML attributes of the table cell (<td>) that is rendered for the column.
public TColumnBuilder HtmlAttributes(object value)
The value that configures the htmlattributes.
Returns:TColumnBuilder
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.
public TColumnBuilder Menu(bool value)
The value that configures the menu.
Returns:TColumnBuilder
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.
public TColumnBuilder MinScreenWidth(double value)
The value that configures the minscreenwidth.
Returns:TColumnBuilder
The template which renders the column content. The Gantt renders table rows (<tr>) which represent the data source items. Each table row consists of table cells (<td>) which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the column.
public TColumnBuilder Template(string value)
The value that configures the template.
Returns:TColumnBuilder
The template which renders the column content. The Gantt renders table rows (<tr>) which represent the data source items. Each table row consists of table cells (<td>) which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the column.
public TColumnBuilder Template(TemplateBuilder<dynamic> template)
The value for the Template
Returns:TColumnBuilder
The template which renders the custom content.
public TColumnBuilder TemplateHandler(string value)
The value that configures the template.
Returns:TColumnBuilder
The template which renders the column content. The Gantt renders table rows (<tr>) which represent the data source items. Each table row consists of table cells (<td>) which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the column.
public TColumnBuilder TemplateId(string value)
The value that configures the template.
Returns:TColumnBuilder
The template which renders the column content. The Gantt renders table rows (<tr>) which represent the data source items. Each table row consists of table cells (<td>) which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the column.
public TColumnBuilder TemplateView(MvcHtmlString value)
The value that configures the template.
Returns:TColumnBuilder
Sets the title displayed in the header of the column.
Sets the width of the column in pixels.
public TColumnBuilder Width(int pixelWidth)
The width in pixels.
Returns:TColumnBuilder