ListEditItemCollection.Add(String, Object) Method
Adds a new item to the collection and specifies the item’s display text and associated value.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
text | String | A String value specifying the item’s display text. |
value | Object | A Object specifying the value associated with the item. |
Returns
Type | Description |
---|---|
ListEditItem | A ListEditItem object that represents the newly created item. |
Remarks
List editors allow their items to be manipulated (new items can be added or existing ones deleted). For example, this may be useful when you need to dynamically change the set of items displayed by a list editor dependent upon the selection made by an end user.
Use the Add method to add a new item with the specified settings to the ListEditItemCollection object.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Add(String, Object) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.