New to Kendo UI for jQuery? Download free 30-day trial

Incell Editing

The TreeList enables you to implement cell editing and make and save batch updates.

The incell (batch) edit mode renders an editor for each clicked cell and allows multiple edits. The user confirms the changes by clicking the Save changes button which sends the changes to the service. For a runnable example, refer to the demo on incell editing of the TreeList.

With incell edit mode you do not need to use the command buttons for update because editing is initiated on cell click. Also, the commands in the toolbar include the Save changes and Cancel changes buttons which save or respectively cancel all changes with a single click.

Due to the specifics of the TreeList, the component does not support the creation of a child node for a new record—in order for a child to be created, the parent node must have an assigned id. However, since the id is assigned within the service on the create action, when the new record is not saved, it will not have id. The code within the dataBound event ensures that the Create child button is removed for all new records.

The following example demonstrates how to implement the incell edit mode in the TreeList.

    toolbar: [ "create", "save", "cancel" ],
    editable: "incell",
    dataBound: function (e) {
        var items = e.sender.items();
        for (var i = 0; i < items.length; i++) {
            var dataItem = e.sender.dataItem(items[i]);
            var row = $(items[i]);
            if (dataItem.isNew()) {
            else {
    columns: [
        { command: [{name: "createchild", text: "Add child"},"destroy" ], width: 240 }

See Also

In this article