ASPxClientTreeListBatchEditApi.AddNewNode(parentNodeKey) Method
In This Article
Adds a new node when ASPxTreeList is in Batch Edit mode.
#Declaration
TypeScript
AddNewNode(
parentNodeKey: string
): void
#Parameters
Name | Type | Description |
---|---|---|
parent |
string | A string value representing a parent node key. |
#Remarks
In this mode, the ASPxTreeList control allows you to add a new node on the client side and send all changes to the server in one request.
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 ASPxTreeList.SetBatchEditInsertedNodeKeyValue method to set the key value for a newly inserted node that is to be a parent for child nodes.
#Concept
#Online Demo
See Also