Hello,
I need a little help concerning the update of the data in JSON.
I defined my source like this
v
ar source = { datatype: "json", datafields: [ { name: 'UserName' }, { name: 'FirstName' }, { name: 'LastName' }, { name: 'Email' }, { name: 'IsApproved', type: 'bool' }, { name: 'IsLocked', type: 'bool' }, { name: 'LastLoginDate', type: 'date' }, { name: 'Id' } ], url: 'AccountManager/GetUsers', id: 'Id' };
My Adapter like this :
dataAdapter = new $.jqx.dataAdapter(source, { async: false });
Now I need to call the json again to refresh the datas.
If I try to do a full process I get an error message (something about the length). In the forum, on another subject, the answer is “update the datas dynamically instead of creating the grid again”. But can I do that ? (please do not send me back to this documentation (http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdataadapter/jquery-data-adapter.htm) which I don’t understand. I need a real example of what to do if possible with a JSON call (not a local array or an xml file, like in all examples).
Thanks