Version

UltraDayViewAction Enumeration

Enumerates the possible actions that can be performed on the UltraDayView
Syntax
'Declaration
 
Public Enum UltraDayViewAction 
   Inherits System.Enum
public enum UltraDayViewAction : System.Enum 
Members
MemberDescription
CreateAppointmentAndEnterEditModeCreates a new Appointment based on selected time slots and enters edit mode.
DeleteSelectedAppointmentsDelete selected appointmens
EndCurrentEditDiscardChangesEnd current appointment edit, discarding any changes that were made to the appointment's Subject
EndCurrentEditSaveChangesEnd current appointment edit, saving any changes that were made to the appointment's Subject
EnterEditModePuts the first selected appointment into edit mode.
FirstWorkingHourTimeSlotFirst Working Hour TimeSlot
LastWorkingHourTimeSlotLast Working Hour TimeSlot
NextColumnNext column
NextTimeSlotNext TimeSlot
NextTimeSlotForLastSelectedAppointmentSelects the TimeSlot following the one that contains the last selected appointment.
NextVisibleDayNext Visible Day
OpenAppointmentDialogOpens the appointment editing dialog.
PageDownPage Down
PageUpPage Up
PreviousColumnPrevious column
PreviousTimeSlotPrevious TimeSlot
PreviousTimeSlotForFirstSelectedAppointmentSelects the TimeSlot preceding the one that contains the first selected appointment.
PreviousVisibleDayPrevious Visible Day
SameTimeSlotNextColumnSame TimeSlot Next Column
SameTimeSlotNextDaySame TimeSlot Next Day
SameTimeSlotPreviousColumnSame TimeSlot Previous Column
SameTimeSlotPreviousDaySame TimeSlot Previous Day
SameTimeSlotsNextDayForSelectedAppointmentsSelects a TimeSlot range in the next visible day that is based on the currently selected appointments.
SameTimeSlotsPreviousDayForSelectedAppointmentsSelects a TimeSlot range in the previous visible day that is based on the currently selected appointments.
ScrollAllDayEventAreaDownScrolls the all-day event area down by one row.
ScrollAllDayEventAreaUpScrolls the all-day event area up by one row.
SelectNextActivitySelects the next appointment in the tab order.
SelectPreviousActivitySelects the previous appointment in the tab order.
Example
The following code demonstrates how to perform a built-in UltraDayView action in response to a button being clicked. The action to be performed is to select the same time slot in the next day.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

	Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

		' Get the current state of the UltraDayView control
		Dim state As UltraDayViewState = Me.UltraDayView1.CurrentState

		' Check the state bit flags to see if a time slot is selected
		If (state And UltraDayViewState.TimeSlotSelected) <> 0 Then

			' Since a time slot is selected, call PerformAction
			' to select the same time slot in the next day.
			Me.UltraDayView1.PerformAction(UltraDayViewAction.SameTimeSlotNextDay)
		End If

	End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

		private void button4_Click(object sender, System.EventArgs e)
		{

			// Get the current state of the UltraDayView control
			UltraDayViewState state = this.ultraDayView1.CurrentState;

			// Check the state bit flags to see if a time slot is selected
			if ((state & UltraDayViewState.TimeSlotSelected) != 0)
			{
				// Since a time slot is selected, call PerformAction
				// to select the same time slot in the next day.
				this.ultraDayView1.PerformAction(UltraDayViewAction.SameTimeSlotNextDay);
			}

		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also