Multiple users can edit the DataGrid's data in real-time. In this demo, changes made in one DataGrid are broadcasted to the other DataGrid via the SignalR service.
To implement this functionality:
Generate a session ID used to identify DataGrids that should be edited simultaneously (
groupId in this demo).
Configure CustomStores. In this demo, we use the createStore method (part of the DevExtreme.AspNet.data extension). The onBeforeSend function is used to send the session ID from step 1 to the server.
Create store instances—one per DataGrid.
Create DataGrids and bind them to the store instances.
Update all the store instances when a push notification is received (see the
Changes made collaboratively are lost if you refresh the page because the SignalR service broadcasts changes without saving them.