ASPxClientGanttContextMenuItem.beginGroup Property
Specifies whether an item separator is displayed before the context menu item.
Declaration
beginGroup: boolean
Property Value
Type | Description |
---|---|
boolean |
|
Remarks
<dx:ASPxGantt ID="Gantt" ClientInstanceName="clientGantt" >
//...
<ClientSideEvents
ContextMenuCustomization="function(s, e) {
// Creates a custom context menu item
var customItem = new ASPxClientGanttContextMenuItem();
customItem.name = 'ToggleResourcesVisibility';
customItem.text = 'Toggle Resources Visibility';
customItem.beginGroup = true;
// Adds a custom context menu item
e.menuItems.Add(customItem);
}
CustomCommand="function(s, e) {
if(e.commandName == 'ToggleResourcesVisibility') {
showResources = !showResources;
clientGantt.ShowResources(showResources);
}
}
/>
</dx:ASPxGantt>
Examples
See Also