PivotGridBuilder<T>
Defines the fluent API for configuring the Kendo UI PivotGrid
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class PivotGridBuilder<T> : WidgetBuilderBase<PivotGrid<T>, PivotGridBuilder<T>>, IHtmlContent where T : class
Inheritance: objectHelperResultWidgetBuilderBase<PivotGrid<T>, PivotGridBuilder<T>>PivotGridBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the PivotGridBuilder<T> class.
Methods
If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.
public PivotGridBuilder<T> AutoBind(bool value)
The value for AutoBind
Returns:Returns the current PivotGridBuilder<T> instance.
Binds the pivotGrid to a list of objects
public PivotGridBuilder<T> BindTo(IEnumerable<T> dataSource)
The data source.
Returns:The PivotGridBuilder<T> object to support method chaining.
The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding column header cell or tuple - the tuple of the corresponding column header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> ColumnHeaderTemplate(string value)
The value for ColumnHeaderTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding column header cell or tuple - the tuple of the corresponding column header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> ColumnHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the columnheadertemplate.
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding column header cell or tuple - the tuple of the corresponding column header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> ColumnHeaderTemplateHandler(string templateHandler)
The handler that returs the template for ColumnHeaderTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding column header cell or tuple - the tuple of the corresponding column header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> ColumnHeaderTemplateId(string templateId)
The ID of the template element for ColumnHeaderTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding column header cell or tuple - the tuple of the corresponding column header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> ColumnHeaderTemplateView(IHtmlContent templateView)
The view that contains the template for ColumnHeaderTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The width of the table columns. Value is treated as pixels.
public PivotGridBuilder<T> ColumnWidth(double value)
The value for ColumnWidth
Returns:Returns the current PivotGridBuilder<T> instance.
Use it to set the Id of the PivotConfigurator.
public PivotGridBuilder<T> Configurator(string configurator)
The configurator
Returns:The PivotGridBuilder<T> object to support method chaining.
The template which renders the content of the data cell. By default renders the formatted value (fmtValue) of the data item.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. For information about the tuple structure check this link. About the data item structure review this help topic.
public PivotGridBuilder<T> DataCellTemplate(string value)
The value for DataCellTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the data cell. By default renders the formatted value (fmtValue) of the data item.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. For information about the tuple structure check this link. About the data item structure review this help topic.
public PivotGridBuilder<T> DataCellTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the datacelltemplate.
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the data cell. By default renders the formatted value (fmtValue) of the data item.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. For information about the tuple structure check this link. About the data item structure review this help topic.
public PivotGridBuilder<T> DataCellTemplateHandler(string templateHandler)
The handler that returs the template for DataCellTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the data cell. By default renders the formatted value (fmtValue) of the data item.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. For information about the tuple structure check this link. About the data item structure review this help topic.
public PivotGridBuilder<T> DataCellTemplateId(string templateId)
The ID of the template element for DataCellTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the data cell. By default renders the formatted value (fmtValue) of the data item.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. For information about the tuple structure check this link. About the data item structure review this help topic.
public PivotGridBuilder<T> DataCellTemplateView(IHtmlContent templateView)
The view that contains the template for DataCellTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
Sets the data source configuration of the grid.
public PivotGridBuilder<T> DataSource(Action<PivotDataSourceBuilder<T>> configurator)
The lambda which configures the data source
Returns:The PivotGridBuilder<T> object to support method chaining.
Sets the ID of the DataSource widget used by the PivotGrid.
public PivotGridBuilder<T> DataSource(string dataSourceId)
The name of the DataSource widget
Returns:The PivotGridBuilder<T> object to support method chaining.
Configures the client-side events.
public PivotGridBuilder<T> Events(Action<PivotGridEventBuilder> configurator)
The client events action.
Returns:Returns the current PivotGridBuilder<T> instance.
Configures the Kendo UI PivotGrid Excel export settings.
public PivotGridBuilder<T> Excel(Action<PivotGridExcelSettingsBuilder<T>> configurator)
The PivotGridExcelSettingsBuilder<T> for the excel setting.
Returns:Returns the current instance of PivotGridBuilder<T> .
If set to true the user will be able to filter by using the field menu.
public PivotGridBuilder<T> Filterable()
Returns the current PivotGridBuilder<T> instance.
If set to true the user will be able to filter by using the field menu.
public PivotGridBuilder<T> Filterable(bool value)
The value for Filterable
Returns:Returns the current PivotGridBuilder<T> instance.
The height of the PivotGrid. Numeric values are treated as pixels.
public PivotGridBuilder<T> Height(double value)
The value for Height
Returns:Returns the current PivotGridBuilder<T> instance.
Sets the KPI Status template of the pivot grid.
public PivotGridBuilder<T> KPIStatusTemplate(string template)
The template
Returns:The PivotGridBuilder<T> object to support method chaining.
the JavaScript function that will return the status template of the pivot grid.
public PivotGridBuilder<T> KPIStatusTemplateHandler(string templateHandler)
The name of the JavaScript function
Returns:The PivotGridBuilder<T> object to support method chaining.
Sets the KPI Status template of the pivot grid.
public PivotGridBuilder<T> KPIStatusTemplateId(string templateId)
The template id
Returns:The PivotGridBuilder<T> object to support method chaining.
Sets the KPI Status template of the pivot grid.
public PivotGridBuilder<T> KPIStatusTemplateView(IHtmlContent templateView)
The template view
Returns:The PivotGridBuilder<T> object to support method chaining.
Sets the KPI Trend template of the pivot grid.
public PivotGridBuilder<T> KPITrendTemplate(string template)
The template
Returns:The PivotGridBuilder<T> object to support method chaining.
Sets the JavaScript function that will return the KPI Trend template of the pivot grid.
public PivotGridBuilder<T> KPITrendTemplateHandler(string templateHandler)
the name of the JavaScript function
Returns:The PivotGridBuilder<T> object to support method chaining.
Sets the KPI Trend template of the pivot grid.
public PivotGridBuilder<T> KPITrendTemplateId(string templateId)
The template id
Returns:The PivotGridBuilder<T> object to support method chaining.
Sets the KPI Trend template of the pivot grid.
public PivotGridBuilder<T> KPITrendTemplateView(IHtmlContent templateView)
The template view
Returns:The PivotGridBuilder<T> object to support method chaining.
Sets the messages of the pivotGrid.
public PivotGridBuilder<T> Messages(Action<PivotGridMessagesBuilder> addViewAction)
The lambda which configures the pivotGrid messages
Returns:The PivotGridBuilder<T> object to support method chaining.
Configures the Kendo UI PivotGrid PDF export settings.
public PivotGridBuilder<T> Pdf(Action<PivotGridPdfSettingsBuilder<T>> configurator)
The PivotGridPdfSettingsBuilder<T> for the pdf setting.
Returns:Returns the current instance of PivotGridBuilder<T> .
If set to false the user will not be able to add/close/reorder current fields for columns/rows/measures.
public PivotGridBuilder<T> Reorderable(bool value)
The value for Reorderable
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding row header cell or tuple - the tuple of the corresponding row header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> RowHeaderTemplate(string value)
The value for RowHeaderTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding row header cell or tuple - the tuple of the corresponding row header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> RowHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the rowheadertemplate.
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding row header cell or tuple - the tuple of the corresponding row header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> RowHeaderTemplateHandler(string templateHandler)
The handler that returs the template for RowHeaderTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding row header cell or tuple - the tuple of the corresponding row header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> RowHeaderTemplateId(string templateId)
The ID of the template element for RowHeaderTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding row header cell or tuple - the tuple of the corresponding row header cell. For information about the tuple structure check this link.
public PivotGridBuilder<T> RowHeaderTemplateView(IHtmlContent templateView)
The view that contains the template for RowHeaderTemplate
Returns:Returns the current PivotGridBuilder<T> instance.
If set to true the user could sort the pivotgrid by clicking the dimension fields. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
public PivotGridBuilder<T> Sortable()
Returns the current instance of PivotGridSortableSettingsBuilder<T> .
If set to true the user could sort the pivotgrid by clicking the dimension fields. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
public PivotGridBuilder<T> Sortable(Action<PivotGridSortableSettingsBuilder<T>> configurator)
The PivotGridSortableSettingsBuilder<T> for the sortable setting.
Returns:Returns the current instance of PivotGridBuilder<T> .
If set to true the user could sort the pivotgrid by clicking the dimension fields. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
public PivotGridBuilder<T> Sortable(bool enabled)
Enables or disables the sortable option.
Returns:Returns the current instance of PivotGridSortableSettingsBuilder<T> .