New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Telerik UI for ASP.NET Core PivotGridV2

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class PivotGridV2Builder<T> : WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>, IHtmlContent where T : class

Inheritance: objectHelperResultWidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>PivotGridV2Builder<T>

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.ToComponent()WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.Expression(string)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.Explorer(ModelExplorer)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.Name(string)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.Deferred(bool)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.HtmlAttributes(object)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.ScriptAttributes(object, bool)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.Render()WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.ToHtmlString()WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.ToClientTemplate()WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.AsModule(bool)WidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.ComponentWidgetBuilderBase<PivotGridV2<T>, PivotGridV2Builder<T>>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the PivotGridV2Builder<T> class.

C#
public PivotGridV2Builder(PivotGridV2<T> component)
Parameters:componentPivotGridV2<T>

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.

C#
public PivotGridV2Builder<T> AutoBind(bool value)
Parameters:valuebool

The value for AutoBind

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

Binds the PivotGridV2 to a collection of objects (local data).

C#
public PivotGridV2Builder<T> BindTo(IEnumerable<T> dataSource)
Parameters:dataSourceIEnumerable<T>

The IEnumerable collection that contains the data.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

Example:
C#
@model IEnumerable&lt;ProductViewModel&gt;

@(Html.Kendo().PivotGridV2&lt;ProductViewModel&gt;()
.Name("pivotgrid")
.BindTo(Model)
)

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.

C#
public PivotGridV2Builder<T> ColumnHeaderTemplate(string value)
Parameters:valuestring

The value for ColumnHeaderTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> ColumnHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the columnheadertemplate.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> ColumnHeaderTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ColumnHeaderTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> ColumnHeaderTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for ColumnHeaderTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> ColumnHeaderTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for ColumnHeaderTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The width of the table columns. Value is treated as pixels.

C#
public PivotGridV2Builder<T> ColumnWidth(double value)
Parameters:valuedouble

The value for ColumnWidth

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

Defines the PivotConfiguratorV2.

C#
public PivotGridV2Builder<T> Configurator(string configurator)
Parameters:configuratorstring

The Name() option of the PivotConfiguratorV2.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

Example:
C#
@(Html.Kendo().PivotConfiguratorV2()
.Name("configurator")
.Sortable()
.Filterable()
.Height(570)
)
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Configurator("#configurator")
)

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.

C#
public PivotGridV2Builder<T> DataCellTemplate(string value)
Parameters:valuestring

The value for DataCellTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> DataCellTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the datacelltemplate.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> DataCellTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for DataCellTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> DataCellTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for DataCellTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> DataCellTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for DataCellTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

Sets the DataSource configuration of the grid.

C#
public PivotGridV2Builder<T> DataSource(Action<PivotDataSourceV2Builder<T>> configurator)
Parameters:configuratorAction<PivotDataSourceV2Builder<T>>

The lambda that configures the DataSource settings.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.DataSource(dataSource =&gt; dataSource.Xmla()
.Columns(columns =&gt; {
columns.Add("[Product].[Category]");
})
.Rows(rows =&gt; rows.Add("[Geography].[City]"))
.Measures(measures =&gt; measures.Values(new string[]{"[Measures].[Reseller Freight Cost]"}))
.Transport(transport =&gt; transport
.Connection(connection =&gt; connection
.Catalog("Adventure Works DW 2008R2")
.Cube("Adventure Works"))
.Read("https://demos.telerik.com/service/v2/olap/msmdpump.dll")
)
)
)

Sets an existing DataSource as a DataSource of the PivotGridV2.

C#
public PivotGridV2Builder<T> DataSource(string dataSourceId)
Parameters:dataSourceIdstring

The name of the existing DataSource.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.DataSource("externalDS")
)

Configures the client-side events.

C#
public PivotGridV2Builder<T> Events(Action<PivotGridV2EventBuilder> configurator)
Parameters:configuratorAction<PivotGridV2EventBuilder>

The client events action.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("PivotGridV2")
.Events(events =&gt; events
.DataBinding("onDataBinding")
)
)

Configures the Kendo UI PivotGridV2 Excel export settings.

C#
public PivotGridV2Builder<T> Excel(Action<PivotGridV2ExcelSettingsBuilder<T>> configurator)
Parameters:configuratorAction<PivotGridV2ExcelSettingsBuilder<T>>

The PivotGridV2ExcelSettingsBuilder<T> for the excel setting.

Returns:

PivotGridV2Builder<T>

Returns the current instance of PivotGridV2Builder<T> .

The height of the PivotGridV2. Numeric values are treated as pixels.

C#
public PivotGridV2Builder<T> Height(double value)
Parameters:valuedouble

The value for Height

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.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.

C#
public PivotGridV2Builder<T> KpiStatusTemplate(string value)
Parameters:valuestring

The value for KpiStatusTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.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.

C#
public PivotGridV2Builder<T> KpiStatusTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the kpistatustemplate.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.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.

C#
public PivotGridV2Builder<T> KpiStatusTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for KpiStatusTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.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.

C#
public PivotGridV2Builder<T> KpiStatusTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for KpiStatusTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.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.

C#
public PivotGridV2Builder<T> KpiStatusTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for KpiStatusTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.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.

C#
public PivotGridV2Builder<T> KpiTrendTemplate(string value)
Parameters:valuestring

The value for KpiTrendTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.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.

C#
public PivotGridV2Builder<T> KpiTrendTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the kpitrendtemplate.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.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.

C#
public PivotGridV2Builder<T> KpiTrendTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for KpiTrendTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.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.

C#
public PivotGridV2Builder<T> KpiTrendTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for KpiTrendTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.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.

C#
public PivotGridV2Builder<T> KpiTrendTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for KpiTrendTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

If set to true the user could navigate the component using the keyboard navigation. By default keyboard navigation is disabled.

C#
public PivotGridV2Builder<T> Navigatable()
Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

If set to true the user could navigate the component using the keyboard navigation. By default keyboard navigation is disabled.

C#
public PivotGridV2Builder<T> Navigatable(bool value)
Parameters:valuebool

The value for Navigatable

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.

Configures the Kendo UI PivotGridV2 PDF export settings.

C#
public PivotGridV2Builder<T> Pdf(Action<PivotGridV2PdfSettingsBuilder<T>> configurator)
Parameters:configuratorAction<PivotGridV2PdfSettingsBuilder<T>>

The PivotGridV2PdfSettingsBuilder<T> for the pdf setting.

Returns:

PivotGridV2Builder<T>

Returns the current instance of PivotGridV2Builder<T> .

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.

C#
public PivotGridV2Builder<T> RowHeaderTemplate(string value)
Parameters:valuestring

The value for RowHeaderTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> RowHeaderTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the rowheadertemplate.

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> RowHeaderTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for RowHeaderTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> RowHeaderTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for RowHeaderTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<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.

C#
public PivotGridV2Builder<T> RowHeaderTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for RowHeaderTemplate

Returns:

PivotGridV2Builder<T>

Returns the current PivotGridV2Builder<T> instance.