This example uses a DevExpress Blazor Popup as a custom edit form for the DevExpress Blazor Grid component. In this example, the edit form is resizable/draggable, and does not close on Escape.
- Add a
DxPopupcomponent and populate it with required edit form content. This example uses DxFormLayout to arrange editors and an EditForm to validate user input. - Add a command column to your Grid markup.
- Use HeaderTemplate and CellDisplayTemplate to add custom New and Edit buttons.
- Implement a method that creates an edit model for a new or existing record (
ShowPopupin our implementation). - When a user submits the form and validation is successful (EditForm.OnValidSubmit), update the data source. Create a new record, if necessary, and post new values.
- Grid for Blazor - How to edit a row on a separate page
- Grid for Blazor - Create a custom record deletion confirmation dialog
(you will be redirected to DevExpress.com to submit your response)
