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

TreeListEventBuilder

Methods

BeforeEdit(System.String)

Fires when the user tries to edit or creates a data item before the editor is created. Can be used for preventing the editing depending on custom logic. The event handler function context (available through the this keyword) will be set to the widget instance. The event will be fired only when the TreeList is editable.

For more information see BeforeEdit event.

Parameters

handler - System.String

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

Cancel(System.String)

Fires when the user clicks the Cancel button (in inline or popup edit mode) or closes the popup window. The event handler function context (available through 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.

CellClose(System.String)

Fires when the incell edit mode is used and the cell will be closed. The event is triggered after saving or canceling the changes but before the cell is closed. The event handler function context (available through 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.

Change(System.String)

Fires when the user selects a table row or cell in the TreeList. The event handler function context (available through the this keyword) will be set to the widget instance.

For more information see Change event.

Parameters

handler - System.String

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

Collapse(System.String)

Fires when an item is about to be collapsed. The event handler function context (available through the this keyword) will be set to the widget instance.

For more information see Collapse event.

Parameters

handler - System.String

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

DataBinding(System.String)

Fires before the widget binds to its data source. The event handler function context (available through 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.

DataBound(System.String)

Fires when the widget is bound to data from its data source. The event handler function context (available through 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.

DragStart(System.String)

(Available as of the 2015.3.1014 release) Fires when the user attempts to drag an item. If prevented, the item is not allowed to move. The event handler function context (available through the this keyword) will be set to the widget instance.

For more information see DragStart event.

Parameters

handler - System.String

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

Drag(System.String)

(Available as of the 2015.3.1014 release) Fires while the user is dragging and item. This event is triggered on every mouse move. The event handler function context (available through the this keyword) will be set to the widget instance.

For more information see Drag event.

Parameters

handler - System.String

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

DragEnd(System.String)

(Available as of the 2015.3.1014 release) Fires when the user finishes dragging an item and the model was updated. The event handler function context (available through the this keyword) will be set to the widget instance.

For more information see DragEnd event.

Parameters

handler - System.String

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

Drop(System.String)

(Available as of the 2015.3.1014 release) Fires when the user drops an item. If prevented, the source row will not be moved. The event handler function context (available through the this keyword) will be set to the widget instance.

For more information see Drop event.

Parameters

handler - System.String

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

Edit(System.String)

Fires when the user edits or creates a data item. The event handler function context (available through 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.

ExcelExport(System.String)

Fires 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.

Expand(System.String)

Fires when an item is about to be expanded. The event handler function context (available through the this keyword) will be set to the widget instance.

For more information see Expand event.

Parameters

handler - System.String

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

FilterMenuInit(System.String)

Fires when the TreeList filter menu is initialized. The event handler function context (available through 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.

FilterMenuOpen(System.String)

Fires when the TreeList filter menu is opened. The event handler function context (available through 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.

PdfExport(System.String)

Fires when the user clicks the Export to PDF toolbar button.

For more information see PdfExport event.

Parameters

handler - System.String

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

Remove(System.String)

Fires when the user clicks the Destroy command button. The event handler function context (available through 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.

Save(System.String)

Fires when a data item is saved. The event handler function context (available through 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.

SaveChanges(System.String)

Fires when the user clicks the Save command button. The event handler function context (available through 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.

ColumnShow(System.String)

Fires when the user shows a column. The event handler function context (available through 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.

ColumnHide(System.String)

Fires when the user hides a column. The event handler function context (available through 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.

ColumnReorder(System.String)

Fires when the user changes the order of a column. The event handler function context (available through 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.

ColumnResize(System.String)

Fires when the user resizes a column. The event handler function context (available through 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.

ColumnMenuInit(System.String)

Fires when the column menu is initialized. The event handler function context (available through 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.

ColumnMenuOpen(System.String)

Fires when the column menu is opened. The event handler function context (available through 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.

ColumnLock(System.String)

Fires when the user lock a column. The event handler function context (available through 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.

ColumnUnlock(System.String)

Fires when the user unlock a column. The event handler function context (available through 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.

In this article
Not finding the help you need?