Hello,
I've done quite a bit of searching and I'm going in loops between hitting other products (mvc, Kendo, etc.) or coming back to the same example (link below).
This is what I'd like to be able to do; Upon user clicking the update/save button I'd like to attempt to save the bound model data, validate it on the server side, (key being server side) and if there are any errors, return to the client and indicate the error within the grid popup (I know how to prevent the popup from going away based upon other examples). The notification example is very poor (the link below). It shows the error in its own popup window, and if the user hits cancel on the Grid Popup, the notification popup remains until they close it. It's not a very elegant solution, and I'm not aware of any other site/web application that behaves this way.
One prime example is the user attempts to save a new item, but names the item the same accidentally as one already in the database causing a key violation. It would be nice to display "Item with name provided already exists", right above text entry field "Name" on the popup. Gets right to the point, does not require user to look elsewhere for the issue and/or acknowledge an additional popup.
Any suggestions for how to accomplish such a repetitive task (common server side validation errors)? We'd prefer NOT providing/creating a custom form/component for each and every set of items (objects) that we need to edit from within a grid/gird popup.
On a side note; It seems this would be a pretty common scenario. We should never trust the clients validation, so all validation should be done again on the server anyway. If the server is a REST api, the same errors could and should occur on the server and returned to the client that would normally get trapped on a blazor client. It would be very nice if your Blazor popup (as one example) implementation (and other standard edits) could elegantly handle/display the servers side error messages. Or am I missing an implementation somewhere?
Thanks in advance,
Curt
Current "Notification" example:
https://github.com/telerik/blazor-ui/tree/master/grid/remote-validation