aspnet-devexpress-dot-web-dot-aspxscheduler-35c155a9.md
Represents a collection of custom keyboard shortcuts.
Namespace : DevExpress.Web.ASPxScheduler
Assembly : DevExpress.Web.ASPxScheduler.v25.2.dll
NuGet Package : DevExpress.Web.Scheduler
public class SchedulerCustomShortcutCollection :
Collection<SchedulerShortcut>
Public Class SchedulerCustomShortcutCollection
Inherits Collection(Of SchedulerShortcut)
The following members return SchedulerCustomShortcutCollection objects:
The SchedulerCustomShortcutCollection represents a collection of SchedulerShortcut objects. The properties and methods declared by this class can be used to perform common collection operations such as adding new or deleting existing items. Individual items can be accessed using indexer notation.
An instance of the SchedulerCustomShortcutCollection class can be accessed using the ASPxScheduler.CustomShortcuts property.
This code example demonstrates how to use the ASPxScheduler API to define a new keyboard shortcut and associate it with custom client-side logic.
function onShortcut(scheduler, args) {
if (args.commandName == "myTab") {
// Your custom logic to process a keyboard shortcut.
args.handled = true;
}
}
<dx:ASPxScheduler ID="ASPxScheduler1" ... >
...
<CustomShortcuts>
<dxwschs:SchedulerShortcut CommandName="customShortcut" Shortcut="shift+enter" />
</CustomShortcuts>
<ClientSideEvents Shortcut="onShortcut"/>
</dx:ASPxScheduler>
DevExpress.Utils.IAssignableCollection
ICollection<SchedulerShortcut>
IEnumerable<SchedulerShortcut>
Object StateManagedCollectionBase Collection Collection<SchedulerShortcut> SchedulerCustomShortcutCollection
See Also