Skip to content

Use a DevExpress Blazor Popup dialog alongside our Blazor Grid to customize a pop-up edit form.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/blazor-grid-popup-edit-form-customization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blazor Grid - Use an External Popup as an Edit Form

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.

Customizable Popup Edit Form

Implementation Details

  1. Add a DxPopup component and populate it with required edit form content. This example uses DxFormLayout to arrange editors and an EditForm to validate user input.
  2. Add a command column to your Grid markup.
  3. Use HeaderTemplate and CellDisplayTemplate to add custom New and Edit buttons.
  4. Implement a method that creates an edit model for a new or existing record (ShowPopup in our implementation).
  5. 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.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Use a DevExpress Blazor Popup dialog alongside our Blazor Grid to customize a pop-up edit form.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5