Data Editing

  • 2 min to read

The ASPxTreeList provides five built-in edit modes that allow end-users to manipulate tree view data. Set the TreeListSettingsEditing.Mode property to one of the following values to specify the tree list edit mode:

 

  • Batch Editing (TreeListEditMode.Batch) - Enables modifying a batch of tree list data on the client-side and sending it to the server in a single request. In this mode, the ASPxTreeList maintains all user changes on the client side until a user saves or discards them.

    ASPxTreeList-BatchEditing

To allow end-users to manipulate tree list data in the modes mentioned above (except for the Batch Edit mode), add a Command Column to the ASPxTreeList.Columns collection and specify which commands end-users can use. End-users can switch the ASPxTreeList to an edit mode by clicking the Edit command. Use the server ASPxTreeList.StartEdit or client ASPxClientTreeList.StartEdit method to switch to an edit mode in code. Click the Update command or use the ASPxTreeList.UpdateEdit (ASPxClientTreeList.UpdateEdit) method to switch the ASPxTreeList back to the browse mode and save all the changes. Changes can be discarded using the ASPxTreeList.CancelEdit (ASPxClientTreeList.CancelEdit) method.

 

Concepts

Member Table

Task-Based Help (Examples)