New to Telerik UI for WinFormsStart a free 30-day trial

Core entry point for all internal events in RadGridView. Provides synchronization semantic for all received notifications and dispatches them to all listeners.

Definition

Constructors

Initializes a new instance of the GridViewSynchronizationService class.

C#
public GridViewSynchronizationService()

Properties

Gets the event that is currently being dispatched.

C#
public GridViewEvent DispatchingEvent { get; }

Gets a value indicating whether the dispatching of Data events is suspended.

C#
public bool IsDataEventDispatchSuspended { get; }
Property Value:

true if the Data Event dispatching is suspended; otherwise, false.

Determines whether the service is currently in a process of dispatching all queued events.

C#
public bool IsDispatching { get; }

Determines whether event dispatching is suspended. If true any incomming events will not be queued.

C#
public bool IsDispatchSuspended { get; }

Determines whether the service is queuing any incomming events without dispatching them.

C#
public bool IsInBeginDispatchBlock { get; }

Gets a value indicating whether the dispatching of UI events is suspended.

C#
public bool IsUIEventDispatchSuspended { get; }
Property Value:

true if the UI event dispatching is suspended; otherwise, false.

Methods

Adds the listener.

C#
public void AddListener(IGridViewEventListener listener)
Parameters:listenerIGridViewEventListener

The listener.

Begins a Dispatch process.

C#
public void BeginDispatch()

Determines whether this instance can be suspended passing the specified event info.

C#
protected virtual bool CanBeSuspended(GridViewEventInfo eventInfo)
Parameters:eventInfoGridViewEventInfo

The event info.

Returns:

bool

Determines whether the specified predicate contains event.

C#
public bool ContainsEvent(Predicate<GridViewEvent> predicate)
Parameters:predicatePredicate<GridViewEvent>

The predicate.

Returns:

bool

Determines whether the specified listener contains listener.

C#
public bool ContainsListener(IGridViewEventListener listener)
Parameters:listenerIGridViewEventListener

The listener.

Returns:

bool

Dispatches the event.

C#
public void DispatchEvent(GridViewEvent gridEvent)
Parameters:gridEventGridViewEvent

The grid event.

Dispatches GridViewEvent

C#
public static void DispatchEvent(GridViewTemplate template, GridViewEvent eventData, bool postUI)
Parameters:templateGridViewTemplate

The template.

eventDataGridViewEvent

The instance of GridViewEvent which will be dispatched.

postUIbool

if set to true, the UI will be asynchronously processed when GridEventType.Both is dispatched.

Disposes all managed resources - such as Bitmaps, GDI+ objects, etc.

C#
protected override void DisposeManagedResources()

Overrides: DisposableObject.DisposeManagedResources()

Ends Dispatch transaction without flushing pending events.

C#
public void EndDispatch()

Ends Dispatch transaction and flushes all pending events.

C#
public void EndDispatch(bool flushEvents)
Parameters:flushEventsbool

Forces any events present on the events queue to be immediately dispatched.

C#
public void FlushEvents()

Determines whether the specified grid view event is ColumnsCollectionChanged.

C#
public static bool IsColumnsCollectionChangedEvent(GridViewEvent gridViewEvent)
Parameters:gridViewEventGridViewEvent

The grid view event.

Returns:

bool

Determines whether the specified grid view event ConditionalFormattingCollectionChanged.

C#
public static bool IsConditionalFormattingCollectionChangedEvent(GridViewEvent gridViewEvent)
Parameters:gridViewEventGridViewEvent

The grid view event.

Returns:

bool

Determines whether the event is suspended for the specified template.

C#
public static bool IsEventSuspended(GridViewTemplate template, KnownEvents eventId)
Parameters:templateGridViewTemplate

The template.

eventIdKnownEvents

The event id.

Returns:

bool

Determines whether event is suspended by the specified event id.

C#
public bool IsEventSuspended(KnownEvents eventId)
Parameters:eventIdKnownEvents

The event id.

Returns:

bool

C#
public static bool IsGroupCollectionChangedEvent(GridViewEvent gridViewEvent)
Parameters:gridViewEventGridViewEventReturns:

bool

Determines whether the specified grid view event RowPropertyChanged.

C#
public static bool IsRowPropertyChangedEvent(GridViewEvent gridViewEvent)
Parameters:gridViewEventGridViewEvent

The grid view event.

Returns:

bool

Determines whether the specified grid view event is TemplatePropertyChanged.

C#
public static bool IsTemplatePropertyChangedEvent(GridViewEvent gridViewEvent)
Parameters:gridViewEventGridViewEvent

The grid view event.

Returns:

bool

Determines whether the specified grid view event is TemplatePropertyChanging.

C#
public static bool IsTemplatePropertyChangingEvent(GridViewEvent gridViewEvent)
Parameters:gridViewEventGridViewEvent

The grid view event.

Returns:

bool

Notifies the listeners.

C#
protected virtual void NotifyListeners(GridViewEvent gridEvent)
Parameters:gridEventGridViewEvent

The grid event.

Raises the current changed.

C#
public static void RaiseCurrentChanged(GridViewTemplate template, GridViewRowInfo row, GridViewColumn column, bool user)
Parameters:templateGridViewTemplate

The template.

rowGridViewRowInfo

The row.

columnGridViewColumn

The column.

userbool

The user.

Removes the listener.

C#
public void RemoveListener(IGridViewEventListener listener)
Parameters:listenerIGridViewEventListener

The listener.

Resumes event dispatching, previously suspended by a SuspendDispatch call.

C#
public void ResumeDispatch()

Resumes the dispatch.

C#
public void ResumeDispatch(GridEventType type)
Parameters:typeGridEventType

The type.

Resumes the event.

C#
public static void ResumeEvent(GridViewTemplate template, KnownEvents eventId)
Parameters:templateGridViewTemplate

The template.

eventIdKnownEvents

The event id.

Resumes dispatching of events with the specified ID.

C#
public void ResumeEvent(KnownEvents eventId)
Parameters:eventIdKnownEvents

Suspends event dispatching.

C#
public void SuspendDispatch()

Suspends the dispatch.

C#
public void SuspendDispatch(GridEventType type)
Parameters:typeGridEventType

The type.

Suspends the event.

C#
public static void SuspendEvent(GridViewTemplate template, KnownEvents eventId)
Parameters:templateGridViewTemplate

The template.

eventIdKnownEvents

The event id.

Suspends dispatching of events with the specified ID.

C#
public void SuspendEvent(KnownEvents eventId)
Parameters:eventIdKnownEvents

Verifies the dispatch.

C#
protected virtual bool VerifyDispatch(GridViewEvent gridEvent)
Parameters:gridEventGridViewEvent

The grid event.

Returns:

bool