Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Inline Editing

 New
From
Subject
Date
Is New
Has Attachment
CollapseEditNewDeleteDeveloper Express - RayNew Holiday Skin24/11/2026 03:32 PM
  UpdateCancel
v
  
 CollapseEditNewDeleteSteven BuchananRe: New Holiday Skin24/11/2026 05:48 PM
   EditNewDeleteNancy DavolioRe: New Holiday Skin24/11/2026 05:50 PM
 CollapseEditNewDeleteJanet LeverlingRe: New Holiday Skin25/11/2026 02:25 PM
  CollapseEditNewDeleteMax V. Evseev (Developer Express)Re: New Holiday Skin26/11/2026 08:32 AM
    EditNewDeleteThomas HardyRe: New Holiday Skin26/11/2026 11:08 AM
    EditNewDeleteJanet LeverlingRe: New Holiday Skin26/11/2026 12:14 PM
   ExpandEditNewDeleteNancy DavolioRe: New Holiday Skin26/11/2026 04:03 PM
    EditNewDeleteLaura CallahanRe: New Holiday Skin29/11/2026 05:01 PM
 CollapseEditNewDeleteAnne DodsworthRe: New Holiday Skin27/11/2026 03:38 PM
   EditNewDeleteMargaret PeacockRe: New Holiday Skin29/11/2026 07:20 AM

This demo describes the TreeList extension inline edit mode. In this edit mode, cell values are edited within the in-line edit node.

For each allowed data operation (such as inserting, updating, deleting or node dragging), provide an associated controller action that will apply data changes to the Model and return the tree list's partial view. You can reference these controller actions by their names using the AddNewNodeRouteValues, UpdateNodeRouteValues, DeleteNodeRouteValues and NodeDragDropRouteValues properties. Note that node dragging is an editing operation, because while changing the node's position, its parent row identificator changes.

To allow end-users to manipulate tree list data, add a Command column to the TreeList's column collection and specify which commands (New, Edit, Delete) can be used by end-users. To switch a tree list node to the edit mode, end-users should be allowed to click the Edit command.

The TreeList validates user-input on the client-side based on the data annotation attributes of your Model. This approach is also called unobtrusive client validation. To enable the unobtrusive validation, the partial View with the TreeList extension is placed inside the HTML <form> element (rendered via the Html.BeginForm helper). The Partial View with the TreeList extension contains two helpers that enable the unobtrusive client validation: Html.EnableClientValidation and Html.EnableUnobtrusiveJavaScript.

An error is displayed next to the individual form editors. However, an additional error message can be displayed below the edit form using the SetEditErrorText method.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxTreeListDemos