'Declaration Public Event MoreActivityIndicatorClicked As MoreActivityIndicatorClickedEventHandler
public event MoreActivityIndicatorClickedEventHandler MoreActivityIndicatorClicked
The event handler receives an argument of type MoreActivityIndicatorClickedEventArgs containing data related to this event. The following MoreActivityIndicatorClickedEventArgs properties provide information specific to this event.
The MoreActivityIndicator appears at the bottom right corner of the day area when that day contains more activities (Appointments, Notes, or Holidays) than can be displayed given the current amount of vertical space.
Private Sub UltraMonthViewSingle1_MoreActivityIndicatorClicked(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinSchedule.MoreActivityIndicatorClickedEventArgs) Handles ultraMonthViewSingle1.MoreActivityIndicatorClicked ' Get a reference to the day that contains the indicator that was clicked Dim day as Infragistics.Win.UltraWinSchedule.Day = e.Day Dim date As DateTime = day.Date ' Activate the day that contains the indicator that was clicked Me.ultraCalendarInfo1.ActiveDay = day ' Select the day that contains the indicator that was clicked Me.ultraCalendarInfo1.SelectedDateRanges.Clear() Me.ultraCalendarInfo1.SelectedDateRanges.Add( date ) ' Hide the UltraMonthViewSingleBase-derived control since we are ' going to show the UltraDayView control. Dim senderControl As UltraMonthViewSingleBase = sender senderControl.Visible = false ' Show the UltraDayView control since UltraDayView displays ' the contents of the SelectedDateRanges collection, the day ' that contains the indicator that was clicked will now be ' visible in the UltraDayView control. Me.ultraDayView1.Visible = true End Sub
private void ultraMonthViewSingle1_MoreActivityIndicatorClicked(object sender, Infragistics.Win.UltraWinSchedule.MoreActivityIndicatorClickedEventArgs e) { // Get a reference to the day that contains the indicator that was clicked Infragistics.Win.UltraWinSchedule.Day day = e.Day; DateTime date = day.Date; // Activate the day that contains the indicator that was clicked this.ultraCalendarInfo1.ActiveDay = day; // Select the day that contains the indicator that was clicked this.ultraCalendarInfo1.SelectedDateRanges.Clear(); this.ultraCalendarInfo1.SelectedDateRanges.Add( date ); // Hide the UltraMonthViewSingleBase-derived control since we are // going to show the UltraDayView control. UltraMonthViewSingleBase senderControl = sender as UltraMonthViewSingleBase; senderControl.Visible = false; // Show the UltraDayView control; since UltraDayView displays // the contents of the SelectedDateRanges collection, the day // that contains the indicator that was clicked will now be // visible in the UltraDayView control. this.ultraDayView1.Visible = true; }
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