New to Telerik UI for ASP.NET MVC? Download free 30-day trial

PivotGridV2EventBuilder

Methods

DataBinding(System.String)

Defines the handler of the DataBinding client-side event. Fires before the PivotGridV2 binds to its DataSource.

For more information see DataBinding event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Events(events => events.DataBinding("onDataBinding"))
            )

DataBound(System.String)

Defines the handler of the DataBound client-side event. Fires after the PivotGridV2 is bound to the data from its DataSource.

For more information see DataBound event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Events(events => events.DataBound("onDataBound"))
            )

ExpandMember(System.String)

Defines the handler of the ExpandMember client-side event. Fires before a column or row field is expanded.

For more information see ExpandMember event.

Parameters

handler - System.String

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Events(events => events.ExpandMember(@<text>
                  function(e) {
                    // Handle the ExpandMember event inline.
                  }
                  </text>)
                )
            )

CollapseMember(System.String)

Defines the handler of the CollapseMember client-side event. Fires before a column or row field is collapsed.

For more information see CollapseMember event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Events(events => events.CollapseMember("onCollapseMember"))
            )

PdfExport(System.String)

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

For more information see PdfExport event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Events(events => events.PdfExport("onPdfExport"))
            )

In this article
Not finding the help you need?