GridEventBuilder
Methods
BeforeEdit(System.String)
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.
For more information see BeforeEdit event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the beforeEdit event.
BeforeEdit(System.Func)
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.
For more information see BeforeEdit event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Cancel(System.String)
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.
For more information see Cancel event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the cancel event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Cancel("onGridCancel"))
)
Cancel(System.Func)
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.
For more information see Cancel event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Cancel(
@<text>
function(e) {
//event handling code
}
</text>
))
)
CellClose(System.String)
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.
For more information see CellClose event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the cellClose event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.CellClose("onGridCellClose"))
)
CellClose(System.Func)
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.
For more information see CellClose event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.CellClose(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Change(System.String)
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.
For more information see Change event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the change event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Change("onGridChange"))
)
Change(System.Func)
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.
For more information see Change event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Change(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Changing(System.String)
Fired when the user is about to select a table row or cell.The event will be fired only when the Grid is selectable.
For more information see Changing event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the changing event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Changing("onGridChanging"))
)
Changing(System.Func)
Fired when the user is about to select a table row or cell.The event will be fired only when the Grid is selectable.
For more information see Changing event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Changing(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnHide(System.String)
Fired when the user hides a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnHide event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnHide event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnHide("onGridColumnHide"))
)
ColumnHide(System.Func)
Fired when the user hides a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnHide event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnHide(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnLock(System.String)
Fired when the user lock a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnLock event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnLock event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnLock("onGridColumnLock"))
)
ColumnLock(System.Func)
Fired when the user lock a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnLock event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnLock(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnMenuInit(System.String)
Fired when the column menu is initialized.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnMenuInit event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnMenuInit event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnMenuInit("onGridColumnMenuInit"))
)
ColumnMenuInit(System.Func)
Fired when the column menu is initialized.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnMenuInit event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnMenuInit(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnMenuOpen(System.String)
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.
For more information see ColumnMenuOpen event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnMenuOpen event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnMenuOpen("onGridColumnMenuOpen"))
)
ColumnMenuOpen(System.Func)
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.
For more information see ColumnMenuOpen event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnMenuOpen(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnReorder(System.String)
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.
For more information see ColumnReorder event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnReorder event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnReorder("onGridColumnReorder"))
)
ColumnReorder(System.Func)
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.
For more information see ColumnReorder event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnReorder(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnResize(System.String)
Fired when the user resizes a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnResize event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnResize event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnResize("onGridColumnResize"))
)
ColumnResize(System.Func)
Fired when the user resizes a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnResize event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnResize(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnShow(System.String)
Fired when the user shows a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnShow event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnShow event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnShow("onGridColumnShow"))
)
ColumnShow(System.Func)
Fired when the user shows a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnShow event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnShow(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnStick(System.String)
Fired when the user sticks a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnStick event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnStick event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnStick("onGridColumnStick"))
)
ColumnStick(System.Func)
Fired when the user sticks a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnStick event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnStick(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnUnlock(System.String)
Fired when the user unlock a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnUnlock event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnUnlock event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnUnlock("onGridColumnUnlock"))
)
ColumnUnlock(System.Func)
Fired when the user unlock a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnUnlock event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnUnlock(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ColumnUnstick(System.String)
Fired when the user unsticks a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnUnstick event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the columnUnstick event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnUnstick("onGridColumnUnstick"))
)
ColumnUnstick(System.Func)
Fired when the user unsticks a column.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ColumnUnstick event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ColumnUnstick(
@<text>
function(e) {
//event handling code
}
</text>
))
)
DataBinding(System.String)
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.
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().Grid()
.Name("grid")
.Events(events => events.DataBinding("onGridDataBinding"))
)
DataBinding(System.Func)
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.
For more information see DataBinding event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.DataBinding(
@<text>
function(e) {
//event handling code
}
</text>
))
)
DataBound(System.String)
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.
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().Grid()
.Name("grid")
.Events(events => events.DataBound("onGridDataBound"))
)
DataBound(System.Func)
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.
For more information see DataBound event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.DataBound(
@<text>
function(e) {
//event handling code
}
</text>
))
)
DetailCollapse(System.String)
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.
For more information see DetailCollapse event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the detailCollapse event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.DetailCollapse("onGridDetailCollapse"))
)
DetailCollapse(System.Func)
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.
For more information see DetailCollapse event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.DetailCollapse(
@<text>
function(e) {
//event handling code
}
</text>
))
)
DetailExpand(System.String)
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.
For more information see DetailExpand event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the detailExpand event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.DetailExpand("onGridDetailExpand"))
)
DetailExpand(System.Func)
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.
For more information see DetailExpand event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.DetailExpand(
@<text>
function(e) {
//event handling code
}
</text>
))
)
DetailInit(System.String)
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.
For more information see DetailInit event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the detailInit event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.DetailInit("onGridDetailInit"))
)
DetailInit(System.Func)
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.
For more information see DetailInit event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.DetailInit(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Edit(System.String)
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.
For more information see Edit event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the edit event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Edit("onGridEdit"))
)
Edit(System.Func)
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.
For more information see Edit event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Edit(
@<text>
function(e) {
//event handling code
}
</text>
))
)
ExcelExport(System.String)
Fired when the user clicks the "Export to Excel" toolbar button.
For more information see ExcelExport event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the excelExport event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ExcelExport("onGridExcelExport"))
)
ExcelExport(System.Func)
Fired when the user clicks the "Export to Excel" toolbar button.
For more information see ExcelExport event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.ExcelExport(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Filter(System.String)
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.
For more information see Filter event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the filter event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Filter("onGridFiltering"))
)
Filter(System.Func)
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.
For more information see Filter event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Filter(
@<text>
function(e) {
//event handling code
}
</text>
))
)
FilterMenuInit(System.String)
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.
For more information see FilterMenuInit event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the filterMenuInit event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.FilterMenuInit("onGridFilterMenuInit"))
)
FilterMenuInit(System.Func)
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.
For more information see FilterMenuInit event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.FilterMenuInit(
@<text>
function(e) {
//event handling code
}
</text>
))
)
FilterMenuOpen(System.String)
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.
For more information see FilterMenuOpen event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the filterMenuOpen event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.FilterMenuOpen("onGridFilterMenuOpen"))
)
FilterMenuOpen(System.Func)
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.
For more information see FilterMenuOpen event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.FilterMenuOpen(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Group(System.String)
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.
For more information see Group event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the group event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Group("onGridGrouping"))
)
Group(System.Func)
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.
For more information see Group event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Group(
@<text>
function(e) {
//event handling code
}
</text>
))
)
GroupCollapse(System.String)
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.
For more information see GroupCollapse event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the groupCollapse event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.GroupCollapse("onGridGroupCollapse"))
)
GroupCollapse(System.Func)
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.
For more information see GroupCollapse event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.GroupCollapse(
@<text>
function(e) {
//event handling code
}
</text>
))
)
GroupExpand(System.String)
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.
For more information see GroupExpand event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the groupExpand event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.GroupExpand("onGridGroupExpand"))
)
GroupExpand(System.Func)
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.
For more information see GroupExpand event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.GroupExpand(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Navigate(System.String)
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.
For more information see Navigate event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the navigate event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Navigatable()
.Events(events => events.Navigate("onGridNavigate"))
)
Navigate(System.Func)
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.
For more information see Navigate event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Navigatable()
.Events(events => events.Navigate(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Page(System.String)
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.
For more information see Page event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the page event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Page("onGridPaging"))
)
Page(System.Func)
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.
For more information see Page event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Page(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Paste(System.String)
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.
For more information see Paste event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the paste event.
Paste(System.Func)
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.
For more information see Paste event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
PdfExport(System.String)
Fired 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().Grid()
.Name("grid")
.Events(events => events.PdfExport("onGridPdfExport"))
)
PdfExport(System.Func)
Fired when the user clicks the "Export to PDF" toolbar button.
For more information see PdfExport event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.PdfExport(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Remove(System.String)
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.
For more information see Remove event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the remove event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Remove("onGridRemove"))
)
Remove(System.Func)
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.
For more information see Remove event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Remove(
@<text>
function(e) {
//event handling code
}
</text>
))
)
RowReorder(System.String)
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.
For more information see RowReorder event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the rowReorder event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.RowReorder("onGridRowReorder"))
)
RowReorder(System.Func)
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.
For more information see RowReorder event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.RowReorder(
@<text>
function(e) {
//event handling code
}
</text>
))
)
RowResize(System.String)
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.
For more information see RowResize event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the rowResize event.
RowResize(System.Func)
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.
For more information see RowResize event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Save(System.String)
Fired when a data item is saved.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Save event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the save event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Save("onGridSave"))
)
Save(System.Func)
Fired when a data item is saved.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see Save event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Save(
@<text>
function(e) {
//event handling code
}
</text>
))
)
SaveChanges(System.String)
Fired when the user clicks the "save" command button.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see SaveChanges event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the saveChanges event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.SaveChanges("onGridSaveChanges"))
)
SaveChanges(System.Func)
Fired when the user clicks the "save" command button.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see SaveChanges event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.SaveChanges(
@<text>
function(e) {
//event handling code
}
</text>
))
)
Sort(System.String)
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.
For more information see Sort event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the sort event.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Sort("onGridSorting"))
)
Sort(System.Func)
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.
For more information see Sort event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Grid()
.Name("grid")
.Events(events => events.Sort(
@<text>
function(e) {
//event handling code
}
</text>
))
)