Hi,
I'm using Infragistics v15.2 i have to edit the cells within the grid with virtualization. I know its not possible with virtulization but is there any option very in i can autocommit the cell values on exitcelledit so that i can so updated values on UI and my view model gets all the updated items. i'm using Property="UpdateMode" Value="OnCellChangeOrLostFocus".
Thanks
Hello Samir,
I am attaching a sample project that binds 1000 records to the XamDataGrid with scrolling and editing enabled. The UpdateMode property is also set to “OnCellChangeOrLostFocus” and when editing, I am not seeing the values reverted to their previous values.
You mentioned that you are enabling paging in this case, which I am a little unsure of as the XamDataGrid does not support paging out-of-the-box.
As you mentioned that you are using version 15.2, I built this sample project against the latest service release of 15.2, specific version 15.2.20152.2212.
Please let me know if you have any other questions or concerns on this matter.
XDGEditAndScrollDemo.zip
But when I scroll down my cell values are changed again, since i'm not saving data immediately to the database. And on which event to commit the changes i'm not understanding as i have not used editing feature a lot.
I want user to allow user to edit records and on click of save button i would like to save all the records updated to the database. I have paging and scrolling enabled on my grid and using MVVM pattern used observable collection to bind to the data. as a start scrolling the cells which i had updated are reverted to their original values.
If you have any example for the editing with scrolling can be helpful to me.
I am rather curious as to why you believe that you cannot edit cells in the XamDataGrid while virtualization is active in this case? I would expect that as long as your XamDataGrid is bound to a valid data source and your Fields have Name properties corresponding to the properties on your underlying data items, the values should be updated on your ViewModel’s items automatically.
Would it be possible for you to please elaborate on how you are attempting to edit the grid in this case and what is not working for you?