Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemTokenEdit.TokenAdding Event

Occurs when a new token is about to be added to this TokenEdit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event TokenEditTokenAddingEventHandler TokenAdding

#Event Data

The TokenAdding event's data class is DevExpress.XtraEditors.TokenEditTokenAddingEventArgs.

#Remarks

Before a new token is added to this TokenEdit, the TokenAdding event fires. You can read the e.Token property to get all the info about this new token, and if required, use the e.Cancel property to prevent it from being added. If token was successfully added, the TokenAdding event is followed by the RepositoryItemTokenEdit.TokenAdded event.

See Also