GridViewContextMenuItemCollection.Add(String, String, String, String, String) Method
Adds a new item with the specified settings to the end of the collection and returns the newly created object.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
public GridViewContextMenuItem Add(
string text,
string name,
string imageUrl,
string navigateUrl,
string target
)
Parameters
Name | Type | Description |
---|---|---|
text | String | A String value that specifies the item text. Initializes the item’s MenuItem.Text property. |
name | String | A String value that specifies the created item’s name. Initializes the item’s MenuItem.Name property. |
imageUrl | String | A String value that specifies the item image url. Initializes the item’s MenuItem.Image.Url property. |
navigateUrl | String | A String value that specifies the URL to which the browser navigates when the item’s text or associated image is clicked. Initializes the item’s MenuItem.NavigateUrl property. |
target | String | A String value that identifies the window or frame at which to target URL content when the item’s text or associated image is clicked. Initializes the item’s MenuItem.Target property. |
Returns
Type | Description |
---|---|
GridViewContextMenuItem | A GridViewContextMenuItem object that is the newly created item. |
Remarks
Use the Add method to add a new item with the specified settings to the GridViewContextMenuItemCollection object.