EventDispatcher
Dispatches typed notifications by event key and supports suspending delivery globally or for individual keys.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class EventDispatcher
Inheritance: objectEventDispatcher
Constructors
public EventDispatcher()
Fields
Event key raised while an auto-generated column is prepared; handlers can modify or cancel adding the column.
public static readonly object AutoGeneratingColumn
Event key raised before a cell enters edit mode; handlers can cancel the operation.
public static readonly object CellBeginEdit
Event key used to route a cell click to the grid's CellClick event.
public static readonly object CellClick
Event key used to let handlers adjust a cell's value before it is copied to the clipboard.
public static readonly object CellClipboardCopy
Event key used to let handlers adjust a cell's value before pasted content is applied.
public static readonly object CellClipboardPaste
Event key raised after the cell's editor has been initialized and made visible.
public static readonly object CellEditorInitialized
Event key raised when editing of a cell ends.
public static readonly object CellEndEdit
Event key used to route cell mouse-move notifications to the grid.
public static readonly object CellMouseMove
Event key used to raise CellPaint when custom drawing is enabled.
public static readonly object CellPaint
Event key raised after the cell value validation process completes.
public static readonly object CellValidated
Event key raised while a cell value is being validated; handlers can cancel the commit.
public static readonly object CellValidating
Event key used to notify the grid after a cell's value changes.
public static readonly object CellValueChanged
Event key used when an unbound cell requests its value from the grid.
public static readonly object CellValueNeeded
Event key used when an unbound cell sends an updated value to the grid.
public static readonly object CellValuePushed
Event key raised after a hierarchy row's child view changes expansion state.
public static readonly object ChildViewExpanded
Event key raised before a hierarchy row's child view changes expansion state; handlers can cancel the change.
public static readonly object ChildViewExpanding
Event key used to route column-chooser item creation to the grid for customization.
public static readonly object ColumnChooserItemElementCreating
public static readonly object ColumnIndexChanged
public static readonly object ColumnIndexChanging
public static readonly object ColumnPropertyChanged
Event key raised after a column's width changes.
public static readonly object ColumnWidthChanged
Event key raised before a column's width changes; handlers can cancel the change.
public static readonly object ColumnWidthChanging
Event key raised when a command-cell button is activated by mouse or keyboard.
public static readonly object CommandCellClick
Event key raised immediately before the conditional-formatting rule editor is shown.
public static readonly object ConditionalFormattingFormShown
Event key raised before a grid context menu opens; handlers can cancel opening it.
public static readonly object ContextMenuOpening
Event key raised while the grid generates each clipboard format; handlers can cancel adding that format.
public static readonly object Copying
Event key raised when filtering needs a composite filter dialog; handlers can substitute the dialog.
public static readonly object CreateCompositeFilterDialog
Event key raised when the template creates a row; handlers can replace the default row instance.
public static readonly object CreateRowInfo
Event key raised after the current cell changes.
public static readonly object CurrentCellChanged
Event key raised after the current column changes.
public static readonly object CurrentColumnChanged
Event key raised after the current row changes.
public static readonly object CurrentRowChanged
Event key raised before the current row changes; handlers can cancel the change.
public static readonly object CurrentRowChanging
Event key used to route each row through the grid's custom-filtering handler.
public static readonly object CustomFiltering
Event key used to route each row through the grid's custom-grouping handler.
public static readonly object CustomGrouping
Event key used to let handlers compare two rows during custom sorting.
public static readonly object CustomSorting
Event key used to route binding-completion notifications from a bound list source to the grid.
public static readonly object DataBindingComplete
Event key used to route data-error details to the grid.
public static readonly object DataError
Event key raised while a new row is initialized so handlers can provide default cell values.
public static readonly object DefaultValuesNeeded
Event key used to request or customize the editor for the current cell.
public static readonly object EditorRequired
Represent empty event dispatcher
public static readonly EventDispatcher Empty
Event key raised after an expression editor form is created and before it is shown.
public static readonly object ExpressionEditorFormCreated
Event key raised after a filter descriptor collection changes.
public static readonly object FilterChangedEvent
Event key raised before a filter descriptor collection changes; handlers can cancel the change.
public static readonly object FilterChangingEvent
Event key used after filter descriptors are converted to a filter expression string.
public static readonly object FilterExpressionChanged
Event key raised after a column's filter popup is selected and initialized, before it is shown.
public static readonly object FilterPopupInitialized
Event key raised after a column's default filter popup is created, allowing the handler to select a replacement.
public static readonly object FilterPopupRequired
Event key raised after the grid's group descriptor collection changes.
public static readonly object GroupByChanged
Event key raised before the grid's group descriptor collection changes; handlers can cancel the change.
public static readonly object GroupByChanging
Event key raised after a data group's expansion state changes.
public static readonly object GroupExpanded
Event key raised before a data group's expansion state changes; handlers can cancel the change.
public static readonly object GroupExpanding
Event key raised after the user changes a group's sort direction.
public static readonly object GroupSortChanged
Event key raised before the user changes a group's sort direction; handlers can cancel the change.
public static readonly object GroupSortChanging
Event key raised while a group summary is evaluated; handlers can replace its value and format string.
public static readonly object GroupSummaryEvaluate
Event key raised when the checkbox in a header cell changes toggle state.
public static readonly object HeaderCellToggleStateChanged
Event key raised after hyperlink processing, including when processing reports an error.
public static readonly object HyperlinkOpened
Event key raised before a hyperlink is processed; handlers can cancel opening it.
public static readonly object HyperlinkOpening
public static readonly object InvalidateRow
public static readonly object LayoutLoaded
Event key raised after the grid changes its current page.
public static readonly object PageChanged
Event key raised before the current page changes; handlers can cancel the change.
public static readonly object PageChanging
Event key raised before the grid parses a clipboard format for pasting; handlers can cancel that format.
public static readonly object Pasting
Event key raised after the grid's current row and column position changes.
public static readonly object PositionChanged
Event key raised before the grid's current row and column position changes; handlers can cancel the change.
public static readonly object PositionChanging
Event key raised before a row's proposed height changes; handlers can cancel the change.
public static readonly object RowHeightChanging
Event key used to route cell mouse movement to the containing row and the grid's row mouse-move event.
public static readonly object RowMouseMove
Event key raised after a row's children are painted when custom drawing is enabled.
public static readonly object RowPaint
public static readonly object RowPropertyChanged
Event key used to route row collection and item-change notifications to the grid.
public static readonly object RowsChanged
Event key raised before a row collection or item change; handlers can cancel the change.
public static readonly object RowsChanging
Event key used when an unbound hierarchy provider requests root or child rows from the grid.
public static readonly object RowSourceNeeded
Event key raised after row validation completes without being canceled.
public static readonly object RowValidated
Event key raised before a row is accepted; handlers can cancel validation.
public static readonly object RowValidating
Event key raised after the selected rows or cells change.
public static readonly object SelectionChanged
Event key raised before a selection change; handlers can cancel the operation.
public static readonly object SelectionChanging
Event key raised after the grid's sort descriptor collection changes.
public static readonly object SortChangedEvent
Event key raised before sorting descriptors change; handlers can cancel the change.
public static readonly object SortChangingEvent
Event key used to route row-scroller tooltip requests through the grid.
public static readonly object ToolTipTextNeeded
Event key raised after a new row is committed.
public static readonly object UserAddedRow
Event key raised before a new row is committed; handlers can cancel the addition.
public static readonly object UserAddingRow
public static readonly object UserChangedCurrentRow
Event key raised after a row is deleted.
public static readonly object UserDeletedRow
Event key raised before a row is deleted; handlers can cancel the deletion.
public static readonly object UserDeletingRow
Event key raised after a cell or editor value changes.
public static readonly object ValueChanged
Event key used to notify the grid before a cell or editor value changes.
public static readonly object ValueChanging
Event key raised when the grid template's column collection changes; listeners receive the collection-change details.
public static readonly object ViewColumnsChanged
Properties
Gets whetehr the event dispatcher is suspended.
public bool IsSuspended { get; }
The is suspended.
Methods
Adds the listener.
public virtual void AddListener<T>(object eventKey, EventHandler<T> eventRaisingMethod) where T : EventArgs
The event key.
eventRaisingMethodEventHandler<T>The event raising method.
Clears all listeners
public void ClearListeners()
Removes the listener.
public virtual void RemoveListener<T>(object eventKey, EventHandler<T> eventRaisingMethod) where T : EventArgs
The event key.
eventRaisingMethodEventHandler<T>The event raising method.
Removes all listeners for specified key
Resumes the event.
Resumes the notifications.
public void ResumeNotifications()
Suspends the event.
Suspends the notifications.
public void SuspendNotifications()