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

Defines the fluent API for configuring the Kendo UI PivotGridV2 for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the PivotGridV2EventBuilder class.

C#
public PivotGridV2EventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The PivotGridV2 event handlers.

Methods

Defines the handler of the CollapseMember client-side event. Fired before column or row field is collapsed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public PivotGridV2EventBuilder CollapseMember(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Events(events =&gt; events.CollapseMember(@&lt;text&gt;
function(e) {
// Handle the CollapseMember event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the CollapseMember client-side event. Fired before column or row field is collapsed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public PivotGridV2EventBuilder CollapseMember(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the CollapseMember event.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Events(events =&gt; events.CollapseMember("onCollapseMember"))
)

Defines the handler of the DataBinding client-side event. Fired before the widget binds to its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public PivotGridV2EventBuilder DataBinding(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Events(events =&gt; events.DataBinding(@&lt;text&gt;
function(e) {
// Handle the DataBinding event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the DataBinding client-side event. Fired before the widget binds to its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public PivotGridV2EventBuilder DataBinding(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the DataBinding event.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

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

Defines the handler of the DataBound client-side event. Fired after the widget is bound to the data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public PivotGridV2EventBuilder DataBound(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Events(events =&gt; events.DataBound(@&lt;text&gt;
function(e) {
// Handle the DataBound event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the DataBound client-side event. Fired after the widget is bound to the data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public PivotGridV2EventBuilder DataBound(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the DataBound event.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Events(events =&gt; events.DataBound("onDataBound"))
)

Defines the handler of the ExpandMember client-side event. Fired before column or row field is expanded.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public PivotGridV2EventBuilder ExpandMember(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Events(events =&gt; events.ExpandMember(@&lt;text&gt;
function(e) {
// Handle the ExpandMember event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the ExpandMember client-side event. Fired before column or row field is expanded.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public PivotGridV2EventBuilder ExpandMember(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the ExpandMember event.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Events(events =&gt; events.ExpandMember("onExpandMember"))
)

Defines the handler of the PdfExport client-side event. Fired when the user clicks the "Export to PDF" toolbar button.

C#
public PivotGridV2EventBuilder PdfExport(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Events(events =&gt; events.PdfExport(@&lt;text&gt;
function(e) {
// Handle the PdfExport event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the PdfExport client-side event. Fired when the user clicks the "Export to PDF" toolbar button.

C#
public PivotGridV2EventBuilder PdfExport(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the PdfExport event.

Returns:

PivotGridV2EventBuilder

Returns the current instance of PivotGridV2EventBuilder .

Example:
C#
@(Html.Kendo().PivotGridV2()
.Name("pivotgrid")
.Events(events =&gt; events.PdfExport("onPdfExport"))
)