Defines the fluent API for configuring GanttColumn
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TTaskModel
TDependenciesModel
Syntax:
public class GanttColumnBuilder<TTaskModel, TDependenciesModel> where TTaskModel : class, IGanttTask where TDependenciesModel : class, IGanttDependency
Inheritance: objectGanttColumnBuilder<TTaskModel, TDependenciesModel>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the GanttColumnBuilder<TTaskModel, TDependenciesModel> class.
public GanttColumnBuilder(GanttColumn<TTaskModel, TDependenciesModel> container)
Properties
Container
GanttColumn<TTaskModel, TDependenciesModel>
Container member.
protected GanttColumn<TTaskModel, TDependenciesModel> Container { get; }
Methods
Specifies whether this column can be edited by the user.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Editable()
GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
Specifies whether this column can be edited by the user.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Editable(bool value)
The value for Editable
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> Expandable()
GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> Expandable(bool value)
The value for Expandable
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
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.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Field(string value)
The value for Field
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> Filterable(Action<GanttColumnFilterableSettingsBuilder<TTaskModel, TDependenciesModel>> configurator)
The GanttColumnFilterableSettingsBuilder<TTaskModel, TDependenciesModel> for the filterable setting.
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current instance of GanttColumnBuilder<TTaskModel, TDependenciesModel> .
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> Filterable(bool enabled)
Enables or disables the filterable option.
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current instance of GanttColumnFilterableSettingsBuilder<TTaskModel, TDependenciesModel> .
Gets or sets the format for displaying the data.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Format(string value)
The value.
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
The HTML attributes of the table header cell (<th>) that is rendered for the column.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> HeaderAttributes(IDictionary<string, object> value)
The value for HeaderAttributes
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
The HTML attributes of the table header cell (<th>) that is rendered for the column.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> HeaderAttributes(object value)
The value for HeaderAttributes
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> 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.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> HeaderTemplate(string value)
The value for HeaderTemplate
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> HeaderTemplate(TemplateBuilder<dynamic> template)
The content of the column.
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
The template which renders the custom content of the Header.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> HeaderTemplateHandler(string templateHandler)
The value that configures the template.
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> HeaderTemplateId(string templateId)
The ID of the template element for HeaderTemplate
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> HeaderTemplateView(IHtmlContent templateView)
The view that contains the template element for HeaderTemplate
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
If set to true, the Gantt will not display the column. By default, all columns are displayed.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Hidden()
GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
If set to true, the Gantt will not display the column. By default, all columns are displayed.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Hidden(bool value)
The value for Hidden
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
The HTML attributes of the table cell (<td>) that is rendered for the column.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> HtmlAttributes(IDictionary<string, object> value)
The value for HtmlAttributes
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
The HTML attributes of the table cell (<td>) that is rendered for the column.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> HtmlAttributes(object value)
The value for HtmlAttributes
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> Menu(bool value)
The value for Menu
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> MinScreenWidth(double value)
The value for MinScreenWidth
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
If set to true the user could sort this column by clicking its header cells. By default sorting is disabled.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Sortable()
GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
Sortable configuration
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Sortable(Action<GanttColumnSortableSettingsBuilder> configurator)
The action that configures the sortable.
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
If set to true the user could sort this column by clicking its header cells. By default sorting is disabled.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Sortable(bool value)
Determines whether sorting will be enabled or not.
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> Template(string value)
The value for Template
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> Template(TemplateBuilder<dynamic> template)
The value for the Template
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
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 GanttColumnBuilder<TTaskModel, TDependenciesModel> TemplateId(string templateId)
The ID of the template element for Template
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
The text that is displayed in the column header cell. If not set the field is used.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Title(string value)
The value for Title
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.
The width of the column. Numeric values are treated as pixels.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Width(double value)
The value for Width
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
A GanttColumnBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt column.
The width of the column. Numeric values are treated as pixels.
public GanttColumnBuilder<TTaskModel, TDependenciesModel> Width(string value)
The value for Width
Returns:GanttColumnBuilder<TTaskModel, TDependenciesModel>
Returns the current GanttColumnBuilder<TTaskModel, TDependenciesModel> instance.