remove()
deletes the specified item from the component
remove(id: (string | number) | (string | number)[]): void;
Parameters:
id: string | string[]- the ids of the items that should be deleted
Example
component.data.remove("2");
//or
component.data.remove(["2", "4"]);
When data is grouped, passing the id of a group header removes the whole group: the header itself, the items of the group, its summary row and its nested groups. DataCollection recalculates the counters and aggregated values of the groups that remain.
Related article: Controls and operations
Related sample: Data. Remove