ClassGridViewSynchronizationService
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
GridViewSynchronizationService()
Initializes a new instance of the GridViewSynchronizationService class.
Declaration
public GridViewSynchronizationService()
Properties
DispatchingEvent
Gets the event that is currently being dispatched.
Declaration
public GridViewEvent DispatchingEvent { get; }
Property Value
IsDataEventDispatchSuspended
Gets a value indicating whether the dispatching of Data events is suspended.
Declaration
public bool IsDataEventDispatchSuspended { get; }
Property Value
true if the Data Event dispatching is suspended; otherwise, false.
IsDispatchSuspended
Determines whether event dispatching is suspended. If true any incomming events will not be queued.
IsDispatching
Determines whether the service is currently in a process of dispatching all queued events.
IsInBeginDispatchBlock
Determines whether the service is queuing any incomming events without dispatching them.
IsUIEventDispatchSuspended
Gets a value indicating whether the dispatching of UI events is suspended.
Declaration
public bool IsUIEventDispatchSuspended { get; }
Property Value
true if the UI event dispatching is suspended; otherwise, false.
Methods
AddListener(IGridViewEventListener)
Adds the listener.
Declaration
public void AddListener(IGridViewEventListener listener)
Parameters
listener
The listener.
CanBeSuspended(GridViewEventInfo)
Determines whether this instance can be suspended passing the specified event info.
Declaration
protected virtual bool CanBeSuspended(GridViewEventInfo eventInfo)
Parameters
eventInfo
The event info.
Returns
ContainsEvent(Predicate<GridViewEvent>)
Determines whether the specified predicate contains event.
Declaration
public bool ContainsEvent(Predicate<GridViewEvent> predicate)
Parameters
predicate
The predicate.
Returns
ContainsListener(IGridViewEventListener)
Determines whether the specified listener contains listener.
Declaration
public bool ContainsListener(IGridViewEventListener listener)
Parameters
listener
The listener.
Returns
DispatchEvent(GridViewEvent)
Dispatches the event.
Declaration
public void DispatchEvent(GridViewEvent gridEvent)
Parameters
gridEvent
The grid event.
DispatchEvent(GridViewTemplate, GridViewEvent, bool)
Dispatches GridViewEvent
Declaration
public static void DispatchEvent(GridViewTemplate template, GridViewEvent eventData, bool postUI)
Parameters
template
The template.
eventData
The instance of GridViewEvent which will be dispatched.
postUI
if set to true, the UI will be asynchronously processed when GridEventType.Both is dispatched.
DisposeManagedResources()
Disposes all managed resources - such as Bitmaps, GDI+ objects, etc.
Declaration
protected override void DisposeManagedResources()
Overrides
EndDispatch()
Ends Dispatch transaction without flushing pending events.
Declaration
public void EndDispatch()
EndDispatch(bool)
Ends Dispatch transaction and flushes all pending events.
FlushEvents()
Forces any events present on the events queue to be immediately dispatched.
Declaration
public void FlushEvents()
IsColumnsCollectionChangedEvent(GridViewEvent)
Determines whether the specified grid view event is ColumnsCollectionChanged.
Declaration
public static bool IsColumnsCollectionChangedEvent(GridViewEvent gridViewEvent)
Parameters
gridViewEvent
The grid view event.
Returns
IsConditionalFormattingCollectionChangedEvent(GridViewEvent)
Determines whether the specified grid view event ConditionalFormattingCollectionChanged.
Declaration
public static bool IsConditionalFormattingCollectionChangedEvent(GridViewEvent gridViewEvent)
Parameters
gridViewEvent
The grid view event.
Returns
IsEventSuspended(GridViewTemplate, KnownEvents)
Determines whether the event is suspended for the specified template.
Declaration
public static bool IsEventSuspended(GridViewTemplate template, KnownEvents eventId)
Parameters
template
The template.
eventId
The event id.
Returns
IsEventSuspended(KnownEvents)
Determines whether event is suspended by the specified event id.
Declaration
public bool IsEventSuspended(KnownEvents eventId)
Parameters
eventId
The event id.
Returns
IsGroupCollectionChangedEvent(GridViewEvent)
Declaration
public static bool IsGroupCollectionChangedEvent(GridViewEvent gridViewEvent)
Parameters
gridViewEvent
Returns
IsRowPropertyChangedEvent(GridViewEvent)
Determines whether the specified grid view event RowPropertyChanged.
Declaration
public static bool IsRowPropertyChangedEvent(GridViewEvent gridViewEvent)
Parameters
gridViewEvent
The grid view event.
Returns
IsTemplatePropertyChangedEvent(GridViewEvent)
Determines whether the specified grid view event is TemplatePropertyChanged.
Declaration
public static bool IsTemplatePropertyChangedEvent(GridViewEvent gridViewEvent)
Parameters
gridViewEvent
The grid view event.
Returns
IsTemplatePropertyChangingEvent(GridViewEvent)
Determines whether the specified grid view event is TemplatePropertyChanging.
Declaration
public static bool IsTemplatePropertyChangingEvent(GridViewEvent gridViewEvent)
Parameters
gridViewEvent
The grid view event.
Returns
NotifyListeners(GridViewEvent)
Notifies the listeners.
Declaration
protected virtual void NotifyListeners(GridViewEvent gridEvent)
Parameters
gridEvent
The grid event.
RaiseCurrentChanged(GridViewTemplate, GridViewRowInfo, GridViewColumn, bool)
Raises the current changed.
Declaration
public static void RaiseCurrentChanged(GridViewTemplate template, GridViewRowInfo row, GridViewColumn column, bool user)
Parameters
template
The template.
row
The row.
column
The column.
user
The user.
RemoveListener(IGridViewEventListener)
Removes the listener.
Declaration
public void RemoveListener(IGridViewEventListener listener)
Parameters
listener
The listener.
ResumeDispatch()
Resumes event dispatching, previously suspended by a SuspendDispatch call.
Declaration
public void ResumeDispatch()
ResumeDispatch(GridEventType)
Resumes the dispatch.
Declaration
public void ResumeDispatch(GridEventType type)
Parameters
type
The type.
ResumeEvent(GridViewTemplate, KnownEvents)
Resumes the event.
Declaration
public static void ResumeEvent(GridViewTemplate template, KnownEvents eventId)
Parameters
template
The template.
eventId
The event id.
ResumeEvent(KnownEvents)
Resumes dispatching of events with the specified ID.
Declaration
public void ResumeEvent(KnownEvents eventId)
Parameters
eventId
SuspendDispatch()
Suspends event dispatching.
Declaration
public void SuspendDispatch()
SuspendDispatch(GridEventType)
Suspends the dispatch.
Declaration
public void SuspendDispatch(GridEventType type)
Parameters
type
The type.
SuspendEvent(GridViewTemplate, KnownEvents)
Suspends the event.
Declaration
public static void SuspendEvent(GridViewTemplate template, KnownEvents eventId)
Parameters
template
The template.
eventId
The event id.
SuspendEvent(KnownEvents)
Suspends dispatching of events with the specified ID.
Declaration
public void SuspendEvent(KnownEvents eventId)
Parameters
eventId
VerifyDispatch(GridViewEvent)
Verifies the dispatch.
Declaration
protected virtual bool VerifyDispatch(GridViewEvent gridEvent)
Parameters
gridEvent
The grid event.
Returns