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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.BeforeEdit("onBeforeEdit");
})
)
BeforeEdit(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.BeforeEdit(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.Cancel("onCancel");
})
)
Cancel(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.Cancel(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.CellClose("onCellClose");
})
)
CellClose(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.CellClose(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.Change("onChange");
})
)
Change(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.Change(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.Collapse("onCollapse");
})
)
Collapse(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.Collapse(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.DataBinding("onDataBinding");
})
)
DataBinding(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.DataBinding(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.DataBound("onDataBound");
})
)
DataBound(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.DataBound(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.DragStart("onDragStart");
})
)
DragStart(System.Func)
(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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.DragStart(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.Drag("onDrag");
})
)
Drag(System.Func)
(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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.Drag(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.DragEnd("onDragEnd");
})
)
DragEnd(System.Func)
(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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.DragEnd(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.Drop("onDrop");
})
)
Drop(System.Func)
(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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.Drop(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.Edit("onEdit");
})
)
Edit(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.Edit(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.ExcelExport("onExcelExport");
})
)
ExcelExport(System.Func)
Fires 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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.ExcelExport(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.Expand("onExpand");
})
)
Expand(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.Expand(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.FilterMenuInit("onFilterMenuInit");
})
)
FilterMenuInit(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.FilterMenuInit(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.FilterMenuOpen("onFilterMenuOpen");
})
)
FilterMenuOpen(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.FilterMenuOpen(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.PdfExport("onPdfExport");
})
)
PdfExport(System.Func)
Fires 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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.PdfExport(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.Remove("onRemove");
})
)
Remove(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.Remove(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.Save("onSave");
})
)
Save(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.Save(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.SaveChanges("onSaveChanges");
})
)
SaveChanges(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.SaveChanges(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.ColumnShow("onColumnShow");
})
)
ColumnShow(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.ColumnShow(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.ColumnHide("onColumnHide");
})
)
ColumnHide(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.ColumnHide(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.ColumnReorder("onColumnReorder");
})
)
ColumnReorder(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.ColumnReorder(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.ColumnResize("onColumnResize");
})
)
ColumnResize(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.ColumnResize(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.ColumnMenuInit("onColumnMenuInit");
})
)
ColumnMenuInit(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.ColumnMenuInit(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.ColumnMenuOpen("onColumnMenuOpen");
})
)
ColumnMenuOpen(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.ColumnMenuOpen(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.ColumnLock("onColumnLock");
})
)
ColumnLock(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.ColumnLock(
@<text>
function(e) {
// event handling code
}
</text>
})
)
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.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e =>
{
e.ColumnUnlock("onColumnUnlock");
})
)
ColumnUnlock(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of TreeListEventBuilder .
Example
@(Html.Kendo().TreeList<UserViewModel>()
.Name("treelist")
.Events(e => e.ColumnUnlock(
@<text>
function(e) {
// event handling code
}
</text>
})
)