Batch end edit losing its place and modifing column from another

Here is my dilemma,

I need the data grid to show the changes that the code behind is updating. I don't necessarily want it to save edits just display them for the user. 

The second column in the pictures is inches and the first column is feet. I want to change the 50 inches to 4 foot 2 inches.

Here is the entry.

beforeNoSave.png

Without EndEditAsync doesn't update the feet view but selection shows it.

AfterNoSave.pngafterNoSaveSelection.png


With EndEditAsync does update the feet but now the grid has lost its position and the user must reselect with .

WithEndEditAsync.png


I either need to show the update without endedit (preferred so I can save later) or with endedit and the user not lose it's place in the grid.


How do I do this?


3 Replies

NP Naveen Palanivel Syncfusion Team August 17, 2022 01:23 PM UTC

Hi Antony,


We checked your query and we suspect changed value is directly saved by calling end edit method in batch Mode. We suggest in batch Mode to use Updatecell Method and we also shared the documentation link below. Please refer the UG documentation for your reference.


Reference:

https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_UpdateCellAsync_System_Double_System_String_System_Object_

https://blazor.syncfusion.com/documentation/datagrid/batch-editing#how-to-auto-update-the-calculative-columns-while-using-batch-editing


Please get back to us if you need further assistance.



Regards,

Naveen Palanivel



AN anthony August 18, 2022 08:02 PM UTC

Thank you so much for pointing me in the right direction. This was the last thing I needed to make this a solid functioning section of my program.


Much respect!



NP Naveen Palanivel Syncfusion Team August 22, 2022 04:04 AM UTC

Hi Antony,


Welcome


Please get back to us if you need further assistance.


Regards,

Naveen Palanivel.


Loader.
Up arrow icon