ListItemBuilder.Key(String) Method
Specifies the name of the list items group in a grouped list. Mirrors the client-side key option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public ListItemBuilder Key(
string value
)
Parameters
Name | Type | Description |
---|---|---|
value | String | The option value. |
Returns
Type | Description |
---|---|
ListItemBuilder | A reference to this instance after the method is called. |
Remarks
Use the following notation to set the option’s value:
@(Html.DevExtreme().List()
.Items(items => {
items.Add().Key("MyKey");
})
)
See Also