[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Collapse]DevExpress.Web.ASPxScheduler
   [Expand]ActiveViewChangingEventArgs Class
    ActiveViewChangingEventHandler Delegate
   [Expand]AgendaAppointmentCellStyle Class
   [Expand]AgendaAppointmentStyles Class
   [Expand]AgendaCellStyle Class
   [Expand]AgendaCellStyleBase Class
   [Expand]AgendaDateCellStyle Class
    AgendaDayHeaderOrientation Enumeration
   [Expand]AgendaEmptyCellStyle Class
   [Expand]AgendaHorizontalDateHeaderStyles Class
    AgendaIconCellVisibility Enumeration
    AgendaResourceLocation Enumeration
   [Expand]AgendaStylesBase Class
   [Expand]AgendaTodayHorizontalDateHeaderStyles Class
   [Expand]AgendaTodayVerticalDateHeaderStyles Class
   [Expand]AgendaVerticalDateHeaderStyles Class
   [Expand]AgendaView Class
   [Expand]AgendaViewStyles Class
   [Expand]AgendaViewTemplates Class
    AppointmentDatesHighlightMode Enumeration
   [Expand]AppointmentDialogLayoutSettings Class
   [Expand]AppointmentFormBaseEventArgs Class
   [Expand]AppointmentFormEventArgs Class
    AppointmentFormEventHandler Delegate
   [Expand]AppointmentFormTemplateContainer Class
   [Expand]AppointmentFormTemplateContainerBase Class
   [Expand]AppointmentImages Class
   [Expand]AppointmentImagesEventArgs Class
    AppointmentImagesEventHandler Delegate
   [Expand]AppointmentInplaceEditorEventArgs Class
    AppointmentInplaceEditorEventHandler Delegate
   [Expand]AppointmentInplaceEditorTemplateContainer Class
   [Expand]AppointmentLabel Class
   [Expand]AppointmentLabelCollection Class
    AppointmentSelectionAppearanceMode Enumeration
   [Expand]AppointmentStatus Class
   [Expand]AppointmentStatusCollection Class
   [Expand]AppointmentTemplateContainer Class
    AppointmentToolTipMode Enumeration
   [Expand]AppointmentViewInfoCustomizingEventArgs Class
    AppointmentViewInfoCustomizingEventHandler Delegate
   [Expand]ASPxAgendaViewAppointmentDisplayOptions Class
   [Expand]ASPxAppointmentCustomFieldMapping Class
   [Expand]ASPxAppointmentCustomFieldMappingCollection Class
   [Expand]ASPxAppointmentMappingInfo Class
   [Expand]ASPxAppointmentStorage Class
   [Expand]ASPxDateNavigator Class
   [Expand]ASPxDayViewAppointmentDisplayOptions Class
   [Expand]ASPxMonthViewAppointmentDisplayOptions Class
   [Expand]ASPxResourceCustomFieldMapping Class
   [Expand]ASPxResourceCustomFieldMappingCollection Class
   [Expand]ASPxResourceMappingInfo Class
   [Expand]ASPxResourceNavigator Class
   [Expand]ASPxResourceStorage Class
   [Expand]ASPxScheduler Class
    ASPxSchedulerChangeAction Enumeration
   [Expand]ASPxSchedulerCustomErrorTextEventArgs Class
    ASPxSchedulerCustomErrorTextEventHandler Delegate
   [Expand]ASPxSchedulerDataBaseUpdatedEventArgs Class
   [Expand]ASPxSchedulerDataDeletedEventArgs Class
    ASPxSchedulerDataDeletedEventHandler Delegate
   [Expand]ASPxSchedulerDataDeletingEventArgs Class
    ASPxSchedulerDataDeletingEventHandler Delegate
   [Expand]ASPxSchedulerDataInsertedEventArgs Class
    ASPxSchedulerDataInsertedEventHandler Delegate
   [Expand]ASPxSchedulerDataInsertingEventArgs Class
    ASPxSchedulerDataInsertingEventHandler Delegate
   [Expand]ASPxSchedulerDataUpdatedEventArgs Class
    ASPxSchedulerDataUpdatedEventHandler Delegate
   [Expand]ASPxSchedulerDataUpdatingEventArgs Class
    ASPxSchedulerDataUpdatingEventHandler Delegate
   [Expand]ASPxSchedulerDataWebControlBase Class
   [Expand]ASPxSchedulerDialogLayoutSettings Class
   [Expand]ASPxSchedulerFormDataHelper Class
   [Expand]ASPxSchedulerImages Class
   [Expand]ASPxSchedulerOptionsAdaptivity Class
   [Expand]ASPxSchedulerOptionsBehavior Class
   [Expand]ASPxSchedulerOptionsCellAutoHeight Class
   [Expand]ASPxSchedulerOptionsCookies Class
   [Expand]ASPxSchedulerOptionsForms Class
   [Expand]ASPxSchedulerOptionsLoadingPanel Class
   [Expand]ASPxSchedulerOptionsMenu Class
   [Expand]ASPxSchedulerOptionsToolTips Class
   [Expand]ASPxSchedulerOptionsView Class
   [Expand]ASPxSchedulerPopupForm Class
   [Expand]ASPxSchedulerPopupMenu Class
   [Expand]ASPxSchedulerPrepareFormPopupContainerEventArgs Class
    ASPxSchedulerPrepareFormPopupContainerHandler Delegate
   [Expand]ASPxSchedulerRelatedControl Class
   [Expand]ASPxSchedulerRelatedControlBase Class
   [Expand]ASPxSchedulerResourceHeaderOptions Class
   [Expand]ASPxSchedulerStorage Class
   [Expand]ASPxSchedulerStorageControl Class
   [Expand]ASPxSchedulerStyles Class
   [Expand]ASPxSchedulerTimeCellPreparedEventArgs Class
    ASPxSchedulerTimeCellPreparedEventHandler Delegate
   [Expand]ASPxTimelineViewAppointmentDisplayOptions Class
   [Expand]ASPxTimeZoneEdit Class
   [Expand]ASPxViewNavigator Class
   [Expand]ASPxViewSelector Class
   [Expand]ASPxViewSelectorOptionsAdaptivity Class
   [Expand]ASPxViewVisibleInterval Class
   [Expand]ASPxViewVisibleIntervalOptionsAdaptivity Class
   [Expand]ASPxWeekViewAppointmentDisplayOptions Class
    AutoHeightMode Enumeration
   [Expand]BottomLeftCornerStyle Class
   [Expand]CellBodyStyle Class
   [Expand]ClientSideAppointmentFieldNames Class
   [Expand]ClockImages Class
   [Expand]CustomizeElementStyleEventArgs Class
    CustomizeElementStyleEventHandler Delegate
   [Expand]DateNavigatorClientSideEvents Class
   [Expand]DateNavigatorProperties Class
   [Expand]DayView Class
   [Expand]DayViewStyles Class
   [Expand]DayViewTemplates Class
   [Expand]FABCreateAppointmentAction Class
   [Expand]FABCreateAppointmentActionGroup Class
   [Expand]FABCreateAppointmentActionItem Class
   [Expand]FABCreateRecurringAppointmentActionItem Class
   [Expand]FABDeleteAppointmentActionItem Class
   [Expand]FABEditAppointmentActionGroup Class
   [Expand]FABEditAppointmentActionItem Class
   [Expand]FullWeekView Class
   [Expand]FullWeekViewStyles Class
   [Expand]GotoDateDialogLayoutSettings Class
   [Expand]GotoDateFormEventArgs Class
    GotoDateFormEventHandler Delegate
   [Expand]GotoDateFormTemplateContainer Class
   [Expand]HeaderStyle Class
   [Expand]InitClientAppointmentEventArgs Class
    InitClientAppointmentHandler Delegate
   [Expand]MonthView Class
   [Expand]MonthViewStyles Class
   [Expand]PopupMenuShowingEventArgs Class
    PopupMenuShowingEventHandler Delegate
   [Expand]PreparePopupMenuEventArgs Class
    PreparePopupMenuEventHandler Delegate
   [Expand]RecurrenceDialogLayoutSettings Class
   [Expand]RecurrentAppointmentDeleteDialogLayoutSettings Class
   [Expand]RecurrentAppointmentEditDialogLayoutSettings Class
   [Expand]ReminderDialogLayoutSettings Class
    ResourceColorFillArea Enumeration
   [Expand]ResourceNavigator Class
    ResourceNavigatorMode Enumeration
   [Expand]ResourceNavigatorPagerProperties Class
   [Expand]ResourceNavigatorProperties Class
   [Expand]ResourceNavigatorTokensProperties Class
   [Expand]SchedulerCallbackCommandEventArgs Class
    SchedulerCallbackCommandEventHandler Delegate
   [Expand]SchedulerCallbackCommandId Class
   [Expand]SchedulerClientSideEvents Class
   [Expand]SchedulerCustomShortcutCollection Class
   [Expand]SchedulerFABActionItem Class
    SchedulerFormAction Enumeration
   [Expand]SchedulerFormEditorsImages Class
   [Expand]SchedulerFormEventArgs Class
   [Expand]SchedulerFormTemplateContainer Class
    SchedulerFormVisibility Enumeration
   [Expand]SchedulerShortcut Class
   [Expand]SchedulerShortcutCommands Class
   [Expand]SchedulerStorageClientSideEvents Class
   [Expand]SchedulerTemplates Class
   [Collapse]SchedulerViewBase Class
     SchedulerViewBase Members
    [Expand]SchedulerViewBase Properties
    [Collapse]SchedulerViewBase Methods
      AddAppointmentSelection Method
      Assign Method
      ChangeAppointmentSelection Method
      Dispose Method
      GetAppointmentDisplayOptions Method
      GetAppointments Method
      GetResources Method
      GetVisibleIntervals Method
      ReverseAppointmentSelection Method
     [Expand]SelectAppointment Method
      SetSelection Method
      SetVisibleIntervals Method
      ZoomIn Method
      ZoomOut Method
   [Expand]SchedulerViewRepository Class
   [Expand]SelectionBarStyle Class
   [Expand]TimeIndicatorDisplayOptions Class
   [Expand]TimelineView Class
   [Expand]TimelineViewStyles Class
    ToolTipCornerType Enumeration
    ViewVisibleIntervalRenderMode Enumeration
    WebElementType Enumeration
   [Expand]WeekView Class
   [Expand]WeekViewStyles Class
   [Expand]WorkWeekView Class
   [Expand]WorkWeekViewStyles Class
  [Expand]DevExpress.Web.ASPxScheduler.Commands
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

SchedulerViewBase.SetSelection Method

Selects time cells which encompass the specified time interval.

Namespace:DevExpress.Web.ASPxScheduler
Assembly:DevExpress.Web.ASPxScheduler.v18.2.dll

Expanded Syntax

Parameters

interval
Type: TimeInterval
A DevExpress.XtraScheduler.TimeInterval object that specifies the time interval to select.
resource
Type: Resource
A DevExpress.XtraScheduler.Resource object that specifies to which resource the specified time interval belongs.

Expanded Remarks

Use the SetSelection method to select time cells within the view. The DevExpress.XtraScheduler.Resource object defined by the resource parameter specifies the resource associated with the selected cells when the view is grouped with the ASPxScheduler.GroupType set to the DevExpress.XtraScheduler.SchedulerGroupType.Resource or DevExpress.XtraScheduler.SchedulerGroupType.Date values. For a scheduler without resources, specify the DevExpress.XtraScheduler.ResourceEmpty.Resource value as the resource parameter.

Expanded See Also

Is this topic helpful?​​​​​​​