Skip to main content
Tab

ListEditItemCollection.Add(String, Object, String) Method

Adds a new item to the collection and specifies the item’s display text, image, and associated value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public virtual ListEditItemBase Add(
    string text,
    object value,
    string imageUrl
)

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.

imageUrl String

A String value specifying the path to the image displayed within the item.

Returns

Type Description
ListEditItemBase

A ListEditItem object that is 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.

See Also