Back to Devexpress

ActiveSubDocumentChangedEvent Class

aspnetcore-js-devexpress-dot-richedit-a33d69b5.md

latest2.7 KB
Original Source

ActiveSubDocumentChangedEvent Class

An event that occurs when an active sub document is changed.

Declaration

ts
export class ActiveSubDocumentChangedEvent extends RichEditEvent<EventArgs>

Remarks

You can define the ActiveSubDocumentChanged event handler either at the server side, at the client side, or at runtime.

Use the OnActiveSubDocumentChanged(String) method to specify the event handler.

cshtml
@(Html.DevExpress().RichEdit("richEdit")
 .OnActiveSubDocumentChanged("function(s,e){ /* your custom actions */ }")
 // ...

Use the activeSubDocumentChanged property to specify the event handler.

javascript
const options = DevExpress.RichEdit.createOptions();
options.events.activeSubDocumentChanged = function(s,e) { /* your custom actions */ };

The activeSubDocumentChanged property provides access to the addHandler(handler), removeHandler(handler), and clearHandlers methods that allow you to dynamically add and remove event handlers.

javascript
richEdit.events.activeSubDocumentChanged.addHandler(function(s, e) { /* your custom actions */ });

The event handler receives an argument of the EventArgs type.

Inherited Members

addHandler(handler)

clearHandlers

isEmpty

removeHandler(handler)

Inheritance

Event<TSource, TEventArgs> RichEditEvent<TEventArgs> ActiveSubDocumentChangedEvent

See Also

Client-Side Events