Hi Jimmy,
Sorry for the inconvenience caused.
We would like to let you know that we can load remote data source to the TreeGrid control using ejDataManager with the help url in Javascript. Currently there is no support to update the changes to the remote Data Source using remoteSaveAdaptor/ UrlAdaptor.
We have also prepared a sample to render the treegrid with remote datasource using url. You can find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/forum/119184/TreeGridDataManager101609140.zip
Hence we have also logged a feature regarding this. A support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Please let us know if you require further assistance on this.
Regards,
Mahalakshmi K.
Hi Jimmy,
Query 1: I have is that any changes made to the data in the treegrid (either editing in cells
Solution:
We would like to let you know that we can get the edit data from the “endEdit” client side event. Please refer the below code snippet to get the edited data from the event.
$("#TreeGridContainer").ejTreeGrid({ //… endEdit: endEdit, }); function endEdit(args) { //get particular edited row in below variable. var record = args.data //get the whole json data in the below variable. var data = args.model.dataSource; } |
Query 2: I have is that any changes made to the data in the treegrid (either editing in cells or by re-ordering nodes
Solution: we would like to let you know that we can get the changed nodes details in the actionComplete client side event. Please refer the below code snippet for getting the modified data while doing drag and drop.
$("#TreeGridContainer").ejTreeGrid({ //… actionComplete: "actionComplete", }); function actionComplete(args) { // get the changed nodes from the below variable. if (args.requestType == "dragAndDrop") var datasource = args.model.dataSource; } |
You can post these modified json data to the remote server.
We have also prepared a sample based on your requirement and please find the sample under the following location.
Sample:http://www.syncfusion.com/downloads/support/forum/119184/Remotedata-2117807494.zip
Please let us know if you need more assistance on this.
Regards,
Mahalakshmi K.