Click here to Skip to main content
15,889,992 members
Articles / Web Development / Blazor

A Blazor Edit State Tracker

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
30 Mar 2023CPOL3 min read 5.2K   4  
This article describes how to build an Edit State Tracker for Blazor that integrates into EditForm and EditContext.
EditContext has no mechanism to store the initial state of model properties, and therefore doesn't track true state. It simply registers that a value in a InputBase field has changed. The value could change back to its original and EditContext would still register it as modified. This article demonstrates how to build an Edit State tracker.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Retired Cold Elm
United Kingdom United Kingdom
Ex Geologist, Project Manager, Web Hoster, Business Owner and IT Consultant. Now, a traveller to places less travelled. And part time developer trying to keep up!

If you feel like saying thanks, the next time you see a charity request, DONATE. No matter how small, no matter who, it'll count. If you have a choice in the UK, Barnados.

Comments and Discussions