I am new using treegrid and need to integrated this treegrid component with a backend but the data needs to be updated in the real-time i.e, multiple users can edit the component and edits should be reflected to all users ASAP. What are the techniques I can use to achieve this and more can you link me the docs that explain the process. I must use sockets.io (clients requirement) in order to achieve real time syncing.
Hey there I am trying to use the RemoteSaveAdaptor for my case and came across few issues.
How do I fetch the initial data using the RemoteSaveAdaptor ?
How can I update data with specific Id ?
The above is the route where I perform update operation but I need to send ID too as the backend expects one but the RemoteSaveAdaptor is sending requests on the updateUrl only without no id.
|
this.data = new DataManager({
json: JSON.parse(this.value),
….
..
adaptor: new RemoteSaveAdaptor();
});
|
|
function actionbegin(args) {
if (args.requestType == "beginEdit") {
location.replace(window.location.rel='nofollow' href + "Home/Update/" + args.primaryKeyValue) // here you can change the url
}
|