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

Batch Editing and Updating

v
v
 
From
Subject
Date Created
Has Attachment
New
CollapseDeveloper Express - RayNew Holiday Skin12/16/2024NewDelete
  Andrew FullerRe: New Holiday Skin12/16/2024NewDelete
 CollapseSteven BuchananRe: New Holiday Skin12/16/2024NewDelete
   Nancy DavolioRe: New Holiday Skin12/16/2024NewDelete
 CollapseJanet LeverlingRe: New Holiday Skin12/17/2024NewDelete
  CollapseMax V. Evseev (Developer Express)Re: New Holiday Skin12/17/2024NewDelete
    Thomas HardyRe: New Holiday Skin12/18/2024NewDelete
    Janet LeverlingRe: New Holiday Skin12/18/2024NewDelete
   ExpandNancy DavolioRe: New Holiday Skin12/18/2024NewDelete
    Laura CallahanRe: New Holiday Skin12/21/2024NewDelete
 CollapseAnne DodsworthRe: New Holiday Skin12/19/2024NewDelete
   Margaret PeacockRe: New Holiday Skin12/20/2024NewDelete
  • Update
  • Cancel

The DevExpress ASP.NET Tree List (ASPxTreeList) control allows you to edit and update multiple tree list nodes on the client side and send them to the server in a single request.

To enable the batch editing functionality, set the TreeListSettingsEditing.Mode property to 'Batch'. In this mode, tree list data contained in a page can be edited using in-line editors. The modified cells are colored in green. Deleted nodes are highlighted with gray and display the Recover command item. All changes are maintained on the client side until the Update command button is clicked, or all changes are canceled by clicking the Cancel command button.

If a tree list contains modified data, it displays a confirm message before a tree list callback or postback is performed.

You can customize the batch edit mode settings by using the following properties.

  • The EditMode property allows you to specify which control element (data cell or node) is used to edit data.
  • The StartEditAction property specifies the action that will be used to begin editing tree list data.

In this demo, use the Edit mode combo box to specify the control element used to edit data. The Start edit action combo box allows you to specify the action that should be used to begin editing tree list data.

Note: When inserting a child node of a parent node that already exists in a data source, it uses the parent node's key field name. The newly inserted child node hasn't a key field until it is saved by clicking the Update button in Batch edit mode. Use the SetBatchEditInsertedNodeKeyValue method to set the key value for a newly inserted node that is to be a parent for child nodes.

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
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxTreeListDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxTreeListDemos