You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error when converting the data sent to the server to JSON. Based on the documentation here https://datatables.net/reference/option/ajax.data, it should be possible to convert to JSON by doing new DataTable('#myTable', { ajax: { url: 'data.json', contentType: 'application/json', type: 'POST', data: function (d) { return JSON.stringify(d); } } });
However, this doesn't work when SearchBuilder is enabled which causes a "Cannot create property 'searchBuilder' on string" error. This issue was mentioned in https://datatables.net/forums/discussion/76987/searchbuilder-criteria#latest, but there doesn't seem to be a fix other than modifying the source code to remove the line that gets SearchBuilder details
The text was updated successfully, but these errors were encountered:
I get an error when converting the data sent to the server to JSON. Based on the documentation here https://datatables.net/reference/option/ajax.data, it should be possible to convert to JSON by doing
new DataTable('#myTable', { ajax: { url: 'data.json', contentType: 'application/json', type: 'POST', data: function (d) { return JSON.stringify(d); } } });
However, this doesn't work when SearchBuilder is enabled which causes a "Cannot create property 'searchBuilder' on string" error. This issue was mentioned in https://datatables.net/forums/discussion/76987/searchbuilder-criteria#latest, but there doesn't seem to be a fix other than modifying the source code to remove the line that gets SearchBuilder details
The text was updated successfully, but these errors were encountered: