Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

This function will return true if grid was modified but not saved. I need to repeat implementation of this function on every usage of grid. I would recommend adding this funciton to the standard product. Here is almost ready to copy code, but you need to use your template type instead of Order:


bool IsDirty()
{
// Returns true if projects were modified but not saved.
int changesCount = 0;
if (gridObj is null)
return false;
Task<BatchChanges<Order>> t = gridObj.GetBatchChangesAsync();
t.Wait();
BatchChanges<Order> changes = t.Result;
if (changes is not null)
changesCount = changes.AddedRecords.Count + changes.ChangedRecords.Count + changes.DeletedRecords.Count;
return changesCount!=0;
}