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

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

Definition

Constructors

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

Methods

Defines the name of the JavaScript function that will handle the BeforeEdit client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the BeforeEdit client-side event.

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

The name of the JavaScript function that will handle the beforeEdit.

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the Cancel client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Cancel client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the CellClose client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the CellClose client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the Change client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Change client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the Changing client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Changing client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the ColumnHide client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the ColumnHide client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the ColumnLock client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the ColumnLock client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the ColumnMenuInit client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the ColumnMenuInit client-side event.

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

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

Returns:

GridEventBuilder

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

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

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

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

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

Defines the name of the JavaScript function that will handle the ColumnReorder client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the ColumnReorder client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the ColumnResize client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the ColumnResize client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the ColumnShow client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the ColumnShow client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the ColumnStick client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the ColumnStick client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the ColumnUnlock client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the ColumnUnlock client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the ColumnUnstick client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the ColumnUnstick client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the DataBinding client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the DataBinding client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the DataBound client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the DataBound client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the DetailCollapse client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the DetailCollapse client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the DetailExpand client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the DetailExpand client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the DetailInit client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the DetailInit client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the Edit client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Edit client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the excelExport client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the excelExport client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the Filter client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Filter client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the FilterMenuInit client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the FilterMenuInit client-side event.

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

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

Returns:

GridEventBuilder

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

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

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

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

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

Defines the name of the JavaScript function that will handle the Group client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Group client-side event.

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

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

Returns:

GridEventBuilder

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

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.

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

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

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

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.

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

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

Returns:

GridEventBuilder

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

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.

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

The handler code wrapped in a text tag.

Returns:

GridEventBuilder

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

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.

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

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

Returns:

GridEventBuilder

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

Defines the inline handler of the KendoKeydown client-side event

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

GridEventBuilder

Defines the name of the JavaScript function that will handle the KendoKeydown client-side event.

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

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

Returns:

GridEventBuilder

Defines the name of the JavaScript function that will handle the Navigate client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Navigate client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the Page client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Page client-side event.

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

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

Returns:

GridEventBuilder

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

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

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

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 handler code wrapped in a text tag.

Returns:

GridEventBuilder

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Selectable()
.AllowPaste()
.Events(events =&gt; events.Paste("onPaste"))
)

Defines the name of the JavaScript function that will handle the pdfExport client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the pdfExport client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the Remove client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Remove client-side event.

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

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

Returns:

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

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

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

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

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

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

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

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

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

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

Defines the name of the JavaScript function that will handle the Save client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Save client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the SaveChanges client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the SaveChanges client-side event.

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

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

Returns:

GridEventBuilder

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

Defines the name of the JavaScript function that will handle the Sort client-side event.

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

The handler code wrapped in a text tag (Razor syntax).

Returns:

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 name of the JavaScript function that will handle the Sort client-side event.

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

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

Returns:

GridEventBuilder

Example:
C#
@(Html.Kendo().Grid()
.Name("grid")
.Events(events =&gt; events.Sort("onGridSorting"))
)
In this article
DefinitionConstructorsGridEventBuilder(IDictionary<string, object>)MethodsBeforeEdit(Func<object, object>)BeforeEdit(string)Cancel(Func<object, object>)Cancel(string)CellClose(Func<object, object>)CellClose(string)Change(Func<object, object>)Change(string)Changing(Func<object, object>)Changing(string)ColumnHide(Func<object, object>)ColumnHide(string)ColumnLock(Func<object, object>)ColumnLock(string)ColumnMenuInit(Func<object, object>)ColumnMenuInit(string)ColumnMenuOpen(Func<object, object>)ColumnMenuOpen(string)ColumnReorder(Func<object, object>)ColumnReorder(string)ColumnResize(Func<object, object>)ColumnResize(string)ColumnShow(Func<object, object>)ColumnShow(string)ColumnStick(Func<object, object>)ColumnStick(string)ColumnUnlock(Func<object, object>)ColumnUnlock(string)ColumnUnstick(Func<object, object>)ColumnUnstick(string)DataBinding(Func<object, object>)DataBinding(string)DataBound(Func<object, object>)DataBound(string)DetailCollapse(Func<object, object>)DetailCollapse(string)DetailExpand(Func<object, object>)DetailExpand(string)DetailInit(Func<object, object>)DetailInit(string)Edit(Func<object, object>)Edit(string)ExcelExport(Func<object, object>)ExcelExport(string)Filter(Func<object, object>)Filter(string)FilterMenuInit(Func<object, object>)FilterMenuInit(string)FilterMenuOpen(Func<object, object>)FilterMenuOpen(string)Group(Func<object, object>)Group(string)GroupCollapse(Func<object, object>)GroupCollapse(string)GroupExpand(Func<object, object>)GroupExpand(string)KendoKeydown(Func<object, object>)KendoKeydown(string)Navigate(Func<object, object>)Navigate(string)Page(Func<object, object>)Page(string)Paste(Func<object, object>)Paste(string)PdfExport(Func<object, object>)PdfExport(string)Remove(Func<object, object>)Remove(string)RowPin(Func<object, object>)RowPin(string)RowReorder(Func<object, object>)RowReorder(string)RowResize(Func<object, object>)RowResize(string)RowUnpin(Func<object, object>)RowUnpin(string)Save(Func<object, object>)Save(string)SaveChanges(Func<object, object>)SaveChanges(string)Sort(Func<object, object>)Sort(string)
Not finding the help you need?
Contact Support