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

GridEventBuilder

Methods

Change(System.Func)

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

For more information see Change event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Change(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Change(System.String)

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

For more information see Change event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Change("onGridChange"))
            )

Changing(System.String)

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

For more information see Changing event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Changing("onGridChanging"))
            )

Changing(System.Func)

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

For more information see Changing event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Changing(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Cancel(System.Func)

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

For more information see Cancel event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Cancel(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Cancel(System.String)

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

For more information see Cancel event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Cancel("onGridCancel"))
            )

BeforeEdit(System.Func)

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

For more information see BeforeEdit event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.BeforeEdit(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

BeforeEdit(System.String)

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

For more information see BeforeEdit event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.BeforeEdit("onGridBeforeEdit"))
            )

Edit(System.Func)

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

For more information see Edit event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Edit(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Edit(System.String)

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

For more information see Edit event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Edit("onGridEdit"))
            )

ExcelExport(System.Func)

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

For more information see ExcelExport event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ExcelExport(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ExcelExport(System.String)

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

For more information see ExcelExport event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ExcelExport("onGridExcelExport"))
            )

PdfExport(System.Func)

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

For more information see PdfExport event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.PdfExport(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

PdfExport(System.String)

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

For more information see PdfExport event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.PdfExport("onGridPdfExport"))
            )

Save(System.Func)

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

For more information see Save event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Save(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Save(System.String)

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

For more information see Save event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Save("onGridSave"))
            )

SaveChanges(System.Func)

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

For more information see SaveChanges event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.SaveChanges(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

SaveChanges(System.String)

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

For more information see SaveChanges event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.SaveChanges("onGridSaveChanges"))
            )

CellClose(System.Func)

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

For more information see CellClose event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.CellClose(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

CellClose(System.String)

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

For more information see CellClose event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.CellClose("onGridCellClose"))
            )

DetailExpand(System.Func)

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

For more information see DetailExpand event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.DetailExpand(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

DetailExpand(System.String)

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

For more information see DetailExpand event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.DetailExpand("onGridDetailExpand"))
            )

DetailInit(System.Func)

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

For more information see DetailInit event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.DetailInit(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

DetailInit(System.String)

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

For more information see DetailInit event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.DetailInit("onGridDetailInit"))
            )

DetailCollapse(System.Func)

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

For more information see DetailCollapse event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.DetailCollapse(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

DetailCollapse(System.String)

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

For more information see DetailCollapse event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.DetailCollapse("onGridDetailCollapse"))
            )

Remove(System.Func)

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

For more information see Remove event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Remove(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Remove(System.String)

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

For more information see Remove event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Remove("onGridRemove"))
            )

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.

DataBound(System.Func)

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

For more information see DataBound event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.DataBound(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

DataBound(System.String)

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

For more information see DataBound event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.DataBound("onGridDataBound"))
            )

Page(System.Func)

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

For more information see Page event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Page(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Page(System.String)

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

For more information see Page event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Page("onGridPaging"))
            )

Group(System.Func)

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

For more information see Group event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Group(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Group(System.String)

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

For more information see Group event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Group("onGridGrouping"))
            )

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.

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.

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.

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.

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>
                      ))
            )

Filter(System.Func)

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

For more information see Filter event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Filter(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Filter(System.String)

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

For more information see Filter event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Filter("onGridFiltering"))
            )

Sort(System.Func)

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

For more information see Sort event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.Sort(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

Sort(System.String)

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

For more information see Sort event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.Sort("onGridSorting"))
            )

DataBinding(System.Func)

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

For more information see DataBinding event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.DataBinding(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

DataBinding(System.String)

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

For more information see DataBinding event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.DataBinding("onGridDataBinding"))
            )

ColumnResize(System.Func)

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

For more information see ColumnResize event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ColumnResize(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ColumnResize(System.String)

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

For more information see ColumnResize event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ColumnResize("onGridColumnResize"))
            )

ColumnReorder(System.Func)

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

For more information see ColumnReorder event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ColumnReorder(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ColumnReorder(System.String)

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

For more information see ColumnReorder event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ColumnReorder("onGridColumnReorder"))
            )

ColumnHide(System.Func)

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

For more information see ColumnHide event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ColumnHide(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ColumnHide(System.String)

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

For more information see ColumnHide event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ColumnHide("onGridColumnHide"))
            )

ColumnShow(System.Func)

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

For more information see ColumnShow event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ColumnShow(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ColumnShow(System.String)

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

For more information see ColumnShow event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ColumnShow("onGridColumnShow"))
            )

ColumnMenuInit(System.Func)

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

For more information see ColumnMenuInit event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ColumnMenuInit(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ColumnMenuInit(System.String)

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

For more information see ColumnMenuInit event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ColumnMenuInit("onGridColumnMenuInit"))
            )

FilterMenuInit(System.Func)

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

For more information see FilterMenuInit event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.FilterMenuInit(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

FilterMenuInit(System.String)

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

For more information see FilterMenuInit event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.FilterMenuInit("onGridFilterMenuInit"))
            )

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>
                      ))
            )

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>
                      ))
            )

ColumnLock(System.Func)

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

For more information see ColumnLock event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ColumnLock(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ColumnLock(System.String)

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

For more information see ColumnLock event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ColumnLock("onGridColumnLock"))
            )

ColumnUnlock(System.Func)

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

For more information see ColumnUnlock event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ColumnUnlock(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ColumnUnlock(System.String)

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

For more information see ColumnUnlock event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ColumnUnlock("onGridColumnUnlock"))
            )

ColumnStick(System.Func)

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

For more information see ColumnStick event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ColumnStick(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ColumnStick(System.String)

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

For more information see ColumnStick event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ColumnStick("onGridColumnStick"))
            )

ColumnUnstick(System.Func)

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

For more information see ColumnUnstick event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Events(events => events.ColumnUnstick(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

ColumnUnstick(System.String)

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

For more information see ColumnUnstick event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Events(events => events.ColumnUnstick("onGridColumnUnstick"))
            )

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

For more information see Navigate event.

Parameters

handler - System.Func<Object,Object>

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

Example


            @(Html.Kendo().Grid()
                      .Name("grid")
                      .Navigatable()
                      .Events(events => events.Navigate(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

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

For more information see Navigate event.

Parameters

handler - System.String

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Navigatable()
                       .Events(events => events.Navigate("onGridNavigate"))
            )

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

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Selectable()
                       .AllowPaste()
                       .Events(events => events.Paste("onPaste"))
            )

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.

Example


            @(Html.Kendo().Grid()
                       .Name("grid")
                       .Selectable()
                       .AllowPaste()
                       .Events(events => events.Paste(
                           @<text>
                           function(e) {
                               //event handling code
                           }
                           </text>
                      ))
            )

In this article
Not finding the help you need?