Skip to main content
API

GanttContextMenuItemBuilder.Selected(JS) Method

Specifies whether or not the item is selected. Mirrors the client-side selected option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttContextMenuItemBuilder Selected(
    JS value
)

Parameters

Name Type Description
value JS

A JavaScript expression that specifies the option value.

Returns

Type Description
GanttContextMenuItemBuilder

A reference to this instance after the method is called.

Remarks

<script>
    var myValue = ...;
</script>

@(Html.DevExtreme().Gantt()
    .ContextMenu(cm => {
        cm.Items(i => {
            i.Add().Selected(new JS("myValue"));
        });
    })
    //...
)
See Also