Hi,
I have a question and would like to know how can I acheive this. My case is that I have a radzen datagrid and user select a row and click edit button which opens dialog form with the fields prefilled with that row data.
Now user make some change in lets say name field and cancel the submission. Now since I passed the object from datagrid page to dialogform the change is still shown in the datagrid even though user cancelled. I know it is because the object reference is same in memory. I tried repopulating data from database but that too collapses grid.
I tried deep cloning the object using DeepCopy nuget package so that if DialogResult is null I just ignore the deep clonned object if it's not null I replace the row index in DataGrid. This scenario forces the page to refresh because the reference/instance of object has changed and datagrid collapses (I am using Multi Hierarchy datagrid).
I want to prevent datagrid collapse and update row or cancel shouldn't update data in row.
Note: (This is purely using Radzen components no signalR or anything and it is entirely different question from my previous question).