Select theme:
Radzen Blazor Studio has replaced Radzen as the primary RAD tool for Blazor applications.
Radzen Blazor Studio offers a modern UI, enhanced features, and improved performance to streamline your development process.
The latest documentation for Radzen Blazor Studio is available here: https://www.radzen.com/blazor-studio/documentation/
Open Radzen Blazor Studio docsThis guide demonstrates how to allow the user to edit data items in a Radzen application.
Create a new Radzen application by following the first step from the quickstart guide.
Add a data source by following step 2 from the create data items guide.
Add a data grid component and data-bind it by following step 3 from the create data items guide.
Now it is time to load the product that the user will edit. We will use a route parameter called Id to get the current product.
${parameters.Id}
.${result}
.This sequence will load the product by invoking the getProductById
method and store the result in the product
page property.
We will use that property to data-bind the edit form.
We are ready to add the edit form.
We have to handle the Submit event of the form in order to persist the changes.
${parameters.Id}
.${event}
. The form component provides the user input as an event argument of the Submit event.Now let's navigate to the Edit Product page (we will create it in the next step).
${event.Id}
.You can now run the application to verify that you can edit products.
Radzen is free to use. You can also test the premium features for 15 days.
Start FreeSelect theme: