![]() Gravitybox Schedule.NET
1998-2005 Gravitybox Software LLC
Page 45 of 90
There are numerous miscellaneous events that are raised in response to some action.
These range from clicking on a schedule area to changing the appointment selection.
These events are quite useful to create custom code that responds to various user
actions.
AfterSelectedItemChange
This event is raised when the SelectedItems collection changes. If the schedule is
single-select then the collection can have exactly zero or one item in it. Each time the
user clicks on an appointment that is not highlighted the currently selected appointment
is deselected and the clicked appointment is added to the SelectItems collection. If the
schedule property MultiSelect is set to true, the user can hold the <CTRL> key and click
multiple appointments to select more than one appointment. All highlighted
appointments are in this collection and may you may add other programmatically. Any
addition or subtraction cases this event to be raised.
BackgroundClick
This event is raised if the user clicks anywhere inside the grid area not on a header or
appointment. This is anywhere on the background.
BeforeSelectedItemChange
This event is raised just before another appointment is added to the SelectedItems
collection. You may cancel the action thus canceling the redrawing of the schedule.
Immediately after the collection has been modified the AfterSelectedItemChange event
is raised.
BeforeToolTip
This event occurs just before a tooltip is displayed. The text is passed as a parameter to
the event may be changed before the tip appears. If the text is set to empty string then
the tip does not appear, effectively canceling the tooltip display.
ColoredAreaClick
This event occurs when the mouse is clicked inside of an area defined in the
ColoredAreaCollection. This is a predefined collection of type ScheduleAreaCollection
that exists on a schedule.
DateRangeChange
This event is raised when either the MinDate or MaxDate of a schedule changes. This
informs the container that a new viewable range is now visible. Calling the
SetMinMaxDate method also causes this event to occur.
NoDropAreaClick
This event occurs when the mouse is clicked inside of an area defined in the
NoDropAreaCollection. This is a predefined collection of type ScheduleAreaCollection
that exists on a schedule.
ViewModeChange
|