Version

AutoSelectionUpdate Property

Determines whether changes to the UltraScheduleControlBase.CalendarInfo's selection will automatically update the Value of the control.
Syntax
'Declaration
 
Public Property AutoSelectionUpdate As Boolean
public bool AutoSelectionUpdate {get; set;}
Remarks

The default value for the AutoSelectionUpdate property is false. When set to true, the control will automatically update the value of the control based on changes made to the UltraCalendarInfo.SelectedDateRanges from outside of the control. Since multiple controls can be attached to the same UltraCalendarInfo, there may be times, when you want the control to automatically display the first or last selected day in the UltraCalendarInfo.SelectedDateRanges based on the DateSelectionType.

Since this property can conflict with the AutoSelect when the control is dropped down, it is often best not to have both values set to true.

Example
This example configures the control so that it does not alter the associated UltraCalendarInfo object's currently selected days when it drops down. It also prevents the dropdown portion from closing when a selection is made.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.CalendarCombo

    Private Sub CustomizeSelectionBehavior()

        '	Don't alter selection when the dropdown appears
        Me.ultraCalendarCombo1.AutoSelect = False

        '	Automatically update the control when the associated UltraCalendarInfo
        '	object's SelectedDateRanges collection changes
        Me.ultraCalendarCombo1.AutoSelectionUpdate = True

        '	Don't automatically close the dropdown when a date is selected
        Me.ultraCalendarCombo1.AutoCloseUp = False

        '	Display the latest selected date in the edit portion
        Me.ultraCalendarCombo1.DateSelectionType = DateSelectionType.LatestSelectedDay

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

		private void CustomizeSelectionBehavior()
		{

			//	Don't alter selection when the dropdown appears
			this.ultraCalendarCombo1.AutoSelect = false;

			//	Automatically update the control when the associated UltraCalendarInfo
			//	object's SelectedDateRanges collection changes
			this.ultraCalendarCombo1.AutoSelectionUpdate = true;

			//	Don't automatically close the dropdown when a date is selected
			this.ultraCalendarCombo1.AutoCloseUp = false;

			//	Display the latest selected date in the edit portion
			this.ultraCalendarCombo1.DateSelectionType = DateSelectionType.LatestSelectedDay;

		}
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