Events
The DataForm exposes a set of events that are raised on different occasions.
-
AutoGeneratingField
—Fires during the automatic creation of a data field. The event is raised for each data field that will be created and can be used to modify or replace the field. The event arguments are of typeAutoGeneratingFieldEventArgs
and provide access to information for the edited property, the display index of the data field, and the data field itself.AutoGeneratingField Event Handler
-
DataFieldPreparedEditor
—Fires when the editor of the associated data field is created. The event arguments are of typeDataFieldPreparedEditorEventArgs
, which provide information about the editor and the data field object.DataFieldPreparedEditor Event Handler
CurrentItemChanged
—Fires when the currently selected item changes.-
InitializingNewItem
—Fires when the creation of a new item begins. The event arguments are of typeInitializingNewItemEventArgs
, which allows you to replace or edit the created item, or cancel the creation.InitializingNewItem Event Handler
-
AddingNewItem
—Fires when a new item is added through the UI or the API of the component. The event arguments are of typeAddingNewItemEventArgs
, which can be used to cancel the adding of the item.AddingNewItem Event Handler
-
AddedNewItem
—Fires after a new item is added in theItemsSource
through the UI or the API of the component. The event arguments are of typeAddedNewItemEventArgs
and contain information about the newly added item.AddedNewItem Event Handler
-
DeletingItem
—Fires when an item is deleted through the UI or the API of the component. The event arguments are of typeCancelEventArgs
, which can be used to cancel the deletion of the item.DeletingItem Event Handler
-
DeletedItem
—Fires after an item was deleted through the UI or the API of the component. The event arguments are of typeItemDeletedEventArgs
, which provides access to the deleted item.DeletedItem Event Handler
-
BeginningEdit
—Fires when editing is beginning. The event arguments are of typeCancelEventArgs
, which can be used to cancel the beginning of the item edit.BeginningEdit Event Handler
-
EditEnding
—Fires when editing is ending. The event arguments are of typeEditEndingEventArgs
, which can be used to cancel the ending of the item edit and also to get the edit action (cancel or commit).EditEnding Event Handler
-
EditEnded
—Fires after editing ends. The event arguments are of typeEditEndedEventArgs
, which allows you to get the edit action (cancel or commit).EditEnded Event Handler
-
DataFieldBeginningEdit
—Fires when the editing of the data field is beginning. The event arguments are of typeDataFieldCancelEventArgs
, which allows you to cancel the editing and also to get the associated data field object.DataFieldBeginningEdit Event Handler
-
DataFieldEditEnded
—Fires after editing ends. The event arguments are of typeDataFieldEditEndedEventArgs
, which allows you to get the edit action (cancel or commit) and also the previous and new values.DataFieldEditEnded Event Handler
-
ValidatingItem
—Fires when an item is being validated. The event arguments are of typeCancelEventArgs
, which can be used to cancel the validation of the item.ValidatingItem Event Handler
-
DataFieldValidating
—Fires when a data field value is being validated. The event arguments are of typeDataFieldValidatingEventArgs
, which provide information about the validation state of the field and also about the new and old value in the editor.DataFieldValidating Event Handler
-
DataFieldValidated
—Fires after the data field validation ends. The event arguments are of typeDataFieldValidatedEventArgs
, which provide information about the validation results and also about the data field object.DataFieldValidated Event Handler
See Also
- Getting Started with the Telerik UI for WinUI DataForm
- Visual Structure