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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.BeforeEdit("onBeforeEdit");
               		})
            	)
             

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 component instance.

For more information see Cancel event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.Cancel("onCancel");
               		})
            	)
             

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 component instance.

For more information see CellClose event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.CellClose("onCellClose");
               		})
            	)
             

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 component instance.

For more information see Change event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.Change("onChange");
               		})
            	)
             

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 component instance.

For more information see Collapse event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.Collapse("onCollapse");
               		})
            	)
             

DataBinding(System.String)

Fires before the component binds to its data source. The event handler function context (available through the this keyword) will be set to the component instance.

For more information see DataBinding event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.DataBinding("onDataBinding");
               		})
            	)
             

DataBound(System.String)

Fires when the component is bound to data from its data source. The event handler function context (available through the this keyword) will be set to the component instance.

For more information see DataBound event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.DataBound("onDataBound");
               		})
            	)
             

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 component instance.

For more information see DragStart event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.DragStart("onDragStart");
               		})
            	)
             

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 component instance.

For more information see Drag event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.Drag("onDrag");
               		})
            	)
             

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 component instance.

For more information see DragEnd event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.DragEnd("onDragEnd");
               		})
            	)
             

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 component instance.

For more information see Drop event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.Drop("onDrop");
               		})
            	)
             

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 component instance.

For more information see Edit event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.Edit("onEdit");
               		})
            	)
             

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.

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.ExcelExport("onExcelExport");
               		})
            	)
             

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 component instance.

For more information see Expand event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.Expand("onExpand");
               		})
            	)
             

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 component instance.

For more information see FilterMenuInit event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.FilterMenuInit("onFilterMenuInit");
               		})
            	)
             

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 component instance.

For more information see FilterMenuOpen event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.FilterMenuOpen("onFilterMenuOpen");
               		})
            	)
             

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.

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.PdfExport("onPdfExport");
               		})
            	)
             

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 component instance.

For more information see Remove event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.Remove("onRemove");
               		})
            	)
             

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 component instance.

For more information see Save event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.Save("onSave");
               		})
            	)
             

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 component instance.

For more information see SaveChanges event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.SaveChanges("onSaveChanges");
               		})
            	)
             

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 component instance.

For more information see ColumnShow event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.ColumnShow("onColumnShow");
               		})
            	)
             

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 component instance.

For more information see ColumnHide event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.ColumnHide("onColumnHide");
               		})
            	)
             

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 component instance.

For more information see ColumnReorder event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.ColumnReorder("onColumnReorder");
               		})
            	)
             

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 component instance.

For more information see ColumnResize event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.ColumnResize("onColumnResize");
               		})
            	)
             

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 component instance.

For more information see ColumnMenuInit event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.ColumnMenuInit("onColumnMenuInit");
               		})
            	)
             

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 component instance.

For more information see ColumnMenuOpen event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.ColumnMenuOpen("onColumnMenuOpen");
               		})
            	)
             

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 component instance.

For more information see ColumnLock event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.ColumnLock("onColumnLock");
               		})
            	)
             

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 component instance.

For more information see ColumnUnlock event.

Parameters

handler - System.String

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

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Events(e =>
               		{
                   		e.ColumnUnlock("onColumnUnlock");
               		})
            	)