Core entry point for all internal events in RadGridView. Provides synchronization semantic for all received notifications and dispatches them to all listeners.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewSynchronizationService : DisposableObject, IDisposable
Inheritance: objectDisposableObjectGridViewSynchronizationService
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewSynchronizationService class.
public GridViewSynchronizationService()
Properties
Gets the event that is currently being dispatched.
public GridViewEvent DispatchingEvent { get; }
Gets a value indicating whether the dispatching of Data events is suspended.
public bool IsDataEventDispatchSuspended { get; }
true if the Data Event dispatching is suspended; otherwise, false.
Determines whether the service is currently in a process of dispatching all queued events.
public bool IsDispatching { get; }
Determines whether event dispatching is suspended. If true any incomming events will not be queued.
public bool IsDispatchSuspended { get; }
Determines whether the service is queuing any incomming events without dispatching them.
public bool IsInBeginDispatchBlock { get; }
Gets a value indicating whether the dispatching of UI events is suspended.
public bool IsUIEventDispatchSuspended { get; }
true if the UI event dispatching is suspended; otherwise, false.
Methods
Adds the listener.
public void AddListener(IGridViewEventListener listener)
The listener.
Begins a Dispatch process.
public void BeginDispatch()
Determines whether this instance can be suspended passing the specified event info.
protected virtual bool CanBeSuspended(GridViewEventInfo eventInfo)
The event info.
Returns:Determines whether the specified predicate contains event.
public bool ContainsEvent(Predicate<GridViewEvent> predicate)
The predicate.
Returns:Determines whether the specified listener contains listener.
public bool ContainsListener(IGridViewEventListener listener)
The listener.
Returns:Dispatches the event.
public void DispatchEvent(GridViewEvent gridEvent)
The grid event.
Dispatches GridViewEvent
public static void DispatchEvent(GridViewTemplate template, GridViewEvent eventData, bool postUI)
The template.
eventDataGridViewEventThe instance of GridViewEvent which will be dispatched.
postUIboolif set to true, the UI will be asynchronously processed when GridEventType.Both is dispatched.
Disposes all managed resources - such as Bitmaps, GDI+ objects, etc.
protected override void DisposeManagedResources()
Overrides:
Ends Dispatch transaction without flushing pending events.
public void EndDispatch()
Ends Dispatch transaction and flushes all pending events.
Forces any events present on the events queue to be immediately dispatched.
public void FlushEvents()
Determines whether the specified grid view event is ColumnsCollectionChanged.
public static bool IsColumnsCollectionChangedEvent(GridViewEvent gridViewEvent)
The grid view event.
Returns:Determines whether the specified grid view event ConditionalFormattingCollectionChanged.
public static bool IsConditionalFormattingCollectionChangedEvent(GridViewEvent gridViewEvent)
The grid view event.
Returns:Determines whether the event is suspended for the specified template.
public static bool IsEventSuspended(GridViewTemplate template, KnownEvents eventId)
The template.
eventIdKnownEventsThe event id.
Returns:Determines whether event is suspended by the specified event id.
public bool IsEventSuspended(KnownEvents eventId)
The event id.
Returns:public static bool IsGroupCollectionChangedEvent(GridViewEvent gridViewEvent)
Determines whether the specified grid view event RowPropertyChanged.
public static bool IsRowPropertyChangedEvent(GridViewEvent gridViewEvent)
The grid view event.
Returns:Determines whether the specified grid view event is TemplatePropertyChanged.
public static bool IsTemplatePropertyChangedEvent(GridViewEvent gridViewEvent)
The grid view event.
Returns:Determines whether the specified grid view event is TemplatePropertyChanging.
public static bool IsTemplatePropertyChangingEvent(GridViewEvent gridViewEvent)
The grid view event.
Returns:Notifies the listeners.
protected virtual void NotifyListeners(GridViewEvent gridEvent)
The grid event.
Raises the current changed.
public static void RaiseCurrentChanged(GridViewTemplate template, GridViewRowInfo row, GridViewColumn column, bool user)
The template.
rowGridViewRowInfoThe row.
columnGridViewColumnThe column.
userboolThe user.
Removes the listener.
public void RemoveListener(IGridViewEventListener listener)
The listener.
Resumes event dispatching, previously suspended by a SuspendDispatch call.
public void ResumeDispatch()
Resumes the dispatch.
Resumes the event.
public static void ResumeEvent(GridViewTemplate template, KnownEvents eventId)
The template.
eventIdKnownEventsThe event id.
Resumes dispatching of events with the specified ID.
Suspends event dispatching.
public void SuspendDispatch()
Suspends the dispatch.
Suspends the event.
public static void SuspendEvent(GridViewTemplate template, KnownEvents eventId)
The template.
eventIdKnownEventsThe event id.
Suspends dispatching of events with the specified ID.
Verifies the dispatch.
protected virtual bool VerifyDispatch(GridViewEvent gridEvent)
The grid event.
Returns: