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

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

Definition

Constructors

Initializes a new instance of the GridEventBuilder class.

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

The Grid event handlers.

Methods

Defines the handler of the BeforeEdit client-side event. Fired when the user tries to edit or create a data item, before the editor is created. Can be used to preventing editing according to any custom logic.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder BeforeEdit(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the BeforeEdit client-side event. Fired when the user tries to edit or create a data item, before the editor is created. Can be used to preventing editing according to any custom logic.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder BeforeEdit(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the Cancel client-side event. Fired when the user clicks the "cancel" button (in inline or popup editing mode) or closes the popup window.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Cancel(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Cancel(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Cancel client-side event. Fired when the user clicks the "cancel" button (in inline or popup editing mode) or closes the popup window.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Cancel(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Cancel("onGridCancel"))
)

Defines the handler of the CellClose client-side event. Fired when "incell" edit mode is used and the cell is going to be closed. The event is triggerd after saving or canceling the changes, but before the cell is closed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder CellClose(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.CellClose(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the CellClose client-side event. Fired when "incell" edit mode is used and the cell is going to be closed. The event is triggerd after saving or canceling the changes, but before the cell is closed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder CellClose(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.CellClose("onGridCellClose"))
)

Defines the handler of the Change client-side event. Fired when the user selects or deselects a table row or cell in the grid. To retrieve the selected elements, use the select method.The event handler function context (available via the this keyword) will be set to the widget instance.The event will be fired only when the Grid is selectable.

C#
public GridEventBuilder Change(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Change(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Change client-side event. Fired when the user selects or deselects a table row or cell in the grid. To retrieve the selected elements, use the select method.The event handler function context (available via the this keyword) will be set to the widget instance.The event will be fired only when the Grid is selectable.

C#
public GridEventBuilder Change(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Change("onGridChange"))
)

Defines the handler of the Changing client-side event. Fired when the user is about to select a table row or cell.The event will be fired only when the Grid is selectable.

C#
public GridEventBuilder Changing(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Changing(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Changing client-side event. Fired when the user is about to select a table row or cell.The event will be fired only when the Grid is selectable.

C#
public GridEventBuilder Changing(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Changing("onGridChanging"))
)

Defines the handler of the ColumnHide client-side event. Fired when the user hides a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnHide(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnHide(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnHide client-side event. Fired when the user hides a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnHide(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnHide("onGridColumnHide"))
)

Defines the handler of the ColumnLock client-side event. Fired when the user lock a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnLock(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnLock(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnLock client-side event. Fired when the user lock a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnLock(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnLock("onGridColumnLock"))
)

Defines the handler of the ColumnMenuInit client-side event. Fired when the column menu is initialized.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnMenuInit(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnMenuInit(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnMenuInit client-side event. Fired when the column menu is initialized.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnMenuInit(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnMenuInit("onGridColumnMenuInit"))
)

Defines the handler of the ColumnMenuOpen client-side event. Fired when the grid column menu is opened, after the animations are completed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnMenuOpen(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnMenuOpen(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnMenuOpen client-side event. Fired when the grid column menu is opened, after the animations are completed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnMenuOpen(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnMenuOpen("onGridColumnMenuOpen"))
)

Defines the handler of the ColumnReorder client-side event. Fired when the user changes the order of a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnReorder(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnReorder(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnReorder client-side event. Fired when the user changes the order of a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnReorder(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnReorder("onGridColumnReorder"))
)

Defines the handler of the ColumnResize client-side event. Fired when the user resizes a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnResize(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnResize(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnResize client-side event. Fired when the user resizes a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnResize(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnResize("onGridColumnResize"))
)

Defines the handler of the ColumnShow client-side event. Fired when the user shows a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnShow(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnShow(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnShow client-side event. Fired when the user shows a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnShow(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnShow("onGridColumnShow"))
)

Defines the handler of the ColumnStick client-side event. Fired when the user sticks a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnStick(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnStick(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnStick client-side event. Fired when the user sticks a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnStick(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnStick("onGridColumnStick"))
)

Defines the handler of the ColumnUnlock client-side event. Fired when the user unlock a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnUnlock(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnUnlock(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnUnlock client-side event. Fired when the user unlock a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnUnlock(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnUnlock("onGridColumnUnlock"))
)

Defines the handler of the ColumnUnstick client-side event. Fired when the user unsticks a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnUnstick(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnUnstick(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ColumnUnstick client-side event. Fired when the user unsticks a column.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder ColumnUnstick(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ColumnUnstick("onGridColumnUnstick"))
)

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

C#
public GridEventBuilder CsvExport(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

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

C#
public GridEventBuilder CsvExport(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

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 GridEventBuilder DataBinding(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DataBinding(
@&lt;text&gt;
function(e) {
//event handling code
}
&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 GridEventBuilder DataBinding(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DataBinding("onGridDataBinding"))
)

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

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

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DataBound(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

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

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

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DataBound("onGridDataBound"))
)

Defines the handler of the DetailCollapse client-side event. Fired when the user collapses a detail table row.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder DetailCollapse(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DetailCollapse(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the DetailCollapse client-side event. Fired when the user collapses a detail table row.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder DetailCollapse(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DetailCollapse("onGridDetailCollapse"))
)

Defines the handler of the DetailExpand client-side event. Fired when the user expands a detail table row.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder DetailExpand(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DetailExpand(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the DetailExpand client-side event. Fired when the user expands a detail table row.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder DetailExpand(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DetailExpand("onGridDetailExpand"))
)

Defines the handler of the DetailInit client-side event. Fired when a detail table row is initialized.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder DetailInit(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DetailInit(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the DetailInit client-side event. Fired when a detail table row is initialized.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder DetailInit(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.DetailInit("onGridDetailInit"))
)

Defines the handler of the Edit client-side event. Fired when the user edits or creates a data item.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Edit(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Edit(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Edit client-side event. Fired when the user edits or creates a data item.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Edit(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Edit("onGridEdit"))
)

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

C#
public GridEventBuilder ExcelExport(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ExcelExport(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

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

C#
public GridEventBuilder ExcelExport(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.ExcelExport("onGridExcelExport"))
)

Defines the handler of the Filter client-side event. Fired when the user is about to filter the DataSource via the filter UI.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2016 R3 (2016.3.914) release.

C#
public GridEventBuilder Filter(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Filter(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Filter client-side event. Fired when the user is about to filter the DataSource via the filter UI.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2016 R3 (2016.3.914) release.

C#
public GridEventBuilder Filter(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Filter("onGridFiltering"))
)

Defines the handler of the FilterMenuInit client-side event. Fired when the grid filter menu is initialized, when it is opened for the first time.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder FilterMenuInit(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.FilterMenuInit(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the FilterMenuInit client-side event. Fired when the grid filter menu is initialized, when it is opened for the first time.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder FilterMenuInit(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.FilterMenuInit("onGridFilterMenuInit"))
)

Defines the handler of the FilterMenuOpen client-side event. Fired when the grid filter menu is opened, after the animations are completed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder FilterMenuOpen(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.FilterMenuOpen(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the FilterMenuOpen client-side event. Fired when the grid filter menu is opened, after the animations are completed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder FilterMenuOpen(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.FilterMenuOpen("onGridFilterMenuOpen"))
)

Defines the handler of the Group client-side event. Fired when the user is about to group the DataSource or modify the group descriptors state via the Grid group panel.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2016 R3 (2016.3.914) release.

C#
public GridEventBuilder Group(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Group(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Group client-side event. Fired when the user is about to group the DataSource or modify the group descriptors state via the Grid group panel.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2016 R3 (2016.3.914) release.

C#
public GridEventBuilder Group(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Group("onGridGrouping"))
)

Defines the handler of the GroupCollapse client-side event. Fired when the user collapses a group row.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2017 R3 (2017.3.913) release.

C#
public GridEventBuilder GroupCollapse(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.GroupCollapse(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the GroupCollapse client-side event. Fired when the user collapses a group row.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2017 R3 (2017.3.913) release.

C#
public GridEventBuilder GroupCollapse(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.GroupCollapse("onGridGroupCollapse"))
)

Defines the handler of the GroupExpand client-side event. Fired when the user expands a group row.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2017 R3 (2017.3.913) release.

C#
public GridEventBuilder GroupExpand(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.GroupExpand(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the GroupExpand client-side event. Fired when the user expands a group row.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2017 R3 (2017.3.913) release.

C#
public GridEventBuilder GroupExpand(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.GroupExpand("onGridGroupExpand"))
)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Grid is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Grid is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the Navigate client-side event. Fired when navigatable is enabled and the user change current item with either mouse or keyboard interaction.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Navigate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Navigatable()
.Events(events =&gt; events.Navigate(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Navigate client-side event. Fired when navigatable is enabled and the user change current item with either mouse or keyboard interaction.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Navigate(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Navigatable()
.Events(events =&gt; events.Navigate("onGridNavigate"))
)

Defines the handler of the Page client-side event. Fired when the user is about change the current page index of DataSource via the pager UI.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2016 R3 (2016.3.914) release.

C#
public GridEventBuilder Page(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Page(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Page client-side event. Fired when the user is about change the current page index of DataSource via the pager UI.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2016 R3 (2016.3.914) release.

C#
public GridEventBuilder Page(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Page("onGridPaging"))
)

Defines the handler of the Paste client-side event. Fired when the user pastes data using the Grid's built-in paste mechanism.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Paste(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the Paste client-side event. Fired when the user pastes data using the Grid's built-in paste mechanism.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Paste(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

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

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

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.PdfExport(
@&lt;text&gt;
function(e) {
//event handling code
}
&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 GridEventBuilder PdfExport(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.PdfExport("onGridPdfExport"))
)

Defines the handler of the Remove client-side event. Fired when the user clicks the "destroy" command button and delete operation is confirmed in the confirmation window, if the cancel button in the window is clicked the event will not be fired.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Remove(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Remove(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Remove client-side event. Fired when the user clicks the "destroy" command button and delete operation is confirmed in the confirmation window, if the cancel button in the window is clicked the event will not be fired.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Remove(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Remove("onGridRemove"))
)

Defines the handler of the RowPin client-side event. Fired when a row is pinned.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder RowPin(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the RowPin client-side event. Fired when a row is pinned.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder RowPin(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the RowReorder client-side event. Fired when the user changes the order of a row.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder RowReorder(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.RowReorder(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the RowReorder client-side event. Fired when the user changes the order of a row.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder RowReorder(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.RowReorder("onGridRowReorder"))
)

Defines the handler of the RowResize client-side event. Fired when the user resizes a row (rows).The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder RowResize(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the RowResize client-side event. Fired when the user resizes a row (rows).The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder RowResize(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the RowUnpin client-side event. Fired when a row is unpinned.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder RowUnpin(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the RowUnpin client-side event. Fired when a row is unpinned.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder RowUnpin(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Defines the handler of the Save client-side event. Fired when a data item is saved.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Save(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Save(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Save client-side event. Fired when a data item is saved.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder Save(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Save("onGridSave"))
)

Defines the handler of the SaveChanges client-side event. Fired when the user clicks the "Save changes" command button in the toolbar.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder SaveChanges(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.SaveChanges(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the SaveChanges client-side event. Fired when the user clicks the "Save changes" command button in the toolbar.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public GridEventBuilder SaveChanges(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.SaveChanges("onGridSaveChanges"))
)

Defines the handler of the Sort client-side event. Fired when the user is about to modify the current state of sort descriptors of DataSource via the sort UI.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2016 R3 (2016.3.914) release.

C#
public GridEventBuilder Sort(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Sort(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Sort client-side event. Fired when the user is about to modify the current state of sort descriptors of DataSource via the sort UI.The event handler function context (available via the this keyword) will be set to the widget instance.Introduced in the Kendo UI 2016 R3 (2016.3.914) release.

C#
public GridEventBuilder Sort(string handler)
Parameters:handlerstring

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

Returns:

GridEventBuilder

Returns the current instance of GridEventBuilder .

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Sort("onGridSorting"))
)