![]() Select a date to set the start date of the range selection and select an end date when pressing the Shift. The specific range of dates can be selected by pressing the Shift. The SfCalendar allows you to select multiple dates through the mouse interaction by selecting separate cells while pressing the Ctrl. AllowMultipleSelection = true Multiple selection through mouse ' Setting to Allow Multiple Selection calendar. Gets the value of the clicked cell date value. Gets a value that indicates whether the date of cell is WeekNumber in SfCalendar. Gets the StartDate and endDate range values of the clicked cell. Gets the CalendarViewType of the cell to draw in SfCalendar whether it is month, year, decade or century view in SfCalendar. Gets a value that indicates whether the date of cell is SpecialDate in SfCalendar. The following CalendarCellEventArgs members provide information specific to this event. The event handler receives an argument of CalendarCellEventArgs type that contains data related to this event. The CellClick event occurs when clicking a calendar cell. SelectedDate = New DateTime ( 2018, 2, 2 ) End If CellClick event GoToDate ( New DateTime ( 2018, 2, 2 )) Then calendar. ![]() Return value as false when the date is not fall within min max range or Blackout dates contains the date. ' Move the current view to the date based on given value. The following code example illustrates the same: If the date value is not fall between minimum and maximum ranges or blackout dates contains the date, it returns false. ![]() The GoToDate method is used to validate and move the current view to the view which contains the date value passed as argument for GoToDate method. The selection of the calendar control can be changed programmatically by setting the SelectedDate property. Up/Down and Left/Right arrow keys help you to change the selection according to the key board interaction. The selected date of the SfCalendar control can be changed by the keyboard. The SfCalendar control allows you to change the selection by clicking the specific date. The selected date in the calendar can be changed by the mouse, keyboard, and touch interaction. The SfCalendar allows you to select one or more dates. Selection in Windows Forms Calendar (SfCalendar)
0 Comments
Leave a Reply. |