Search
18504 results 2881-2890
Forum
- 15th Nov 2023Bug in Docs: AJAX objectsLink to test case: https://datatables.net/examples/ajax/objects.html Debugger code (debug.datatables.net): n/a Error messages shown: none Description of problem: I think a lot of text is missing from the page I linked. It also doesn't follow the Dark Mode setting. Update: if I turn off both adblocker and Enhanced Tracking Protection then I can see the page in dark mode with the example for a 0.1s then it switches back to light mode and the datatable disappears. Other pages of DataTables.net don't have any conflict with adblocker and ETP. There is no error message on the console.
- 15th May 2018Editor remove ajax 'A System error occured"hello team implemented remove , please find the below code, successful deleting but show error on delete popup with message "A system error has occurred (More information)." Also for othe operations like add and edit , not getting any error message but would like to get call back for all three operations and reload the table. remove: { type: 'DELETE', url: '/agency/delete', contentType: 'application/json', deleteBody: false, data: function ( editData ) { var idSelected; $.each(editData.data,function(key,value){ idSelected=value.agencyId; }); return JSON.stringify(editData.data[idSelected] ); }, success: function () { alert('deleted'); } }
- 19th Feb 2018loading large dataset in datatable using ajax callnow i am dealing with loading large dataset(10,000) in datatable.for this i coded as to load 1,000 record in the first attempt.The remaining data should load after scrolling only(ie,after seeing the 1000 records a backend request is send to load the next 1000 records).Can you please help me to code as in my method.I want to code in the scroll event $('.dataTables_scrollBody').on('scroll', function() {....});
- 29th Jan 2018Open rows get closed when reloading Ajax when using ResponsiveHi! I have setup a fiddle to show what I mean: https://jsfiddle.net/rLoyzugf/ Open one of the rows and wait for the reload in 5000ms. It just gets hidden. Is this a bug in the current version? Any workarounds? Thanks!
- 20th Feb 2017parse data table from ajax URLHi, I'm trying to parse a REST service response as a Data table but I need to show only some columns in the table and to change columns name. Is any way to accomplish this goal with datatables API? Thanks in advance, Laura
- 27th Jan 2017Prevent AJAX Reload After Inline EditIs it possible to stop the table from redrawing after an Inline edit is submitted?
- 6th Dec 2016There is a problem with ajax json response for c# framework upper then 3.5Dearl All, I have been using your framework and I believe I've found a problem and also corrected it. For the C# frameworks upper than 3.5 all the json that is returned from a webmethod is encapsulated with a d for security reasons (http://stackoverflow.com/questions/6588589/why-do-asp-net-json-web-services-return-the-result-in-d?noredirect=1&lq=1#answer-6588603), which means that the json retrieved does not follow the base standart you have defines as you can see below: {d: "{"draw":5,"recordsTotal":464,"recordsFiltered":464, "data":…}"} Saying that when we are performing the UpdateDraw - function _fnAjaxUpdateDraw(settings, json) -, we should guarantee the following: if (json.hasOwnProperty("d")) json = JSON.parse(json.d); Without doing that, even if in the method _fnAjaxDataSrc(settings, json); we perform the parse and return the data from the above object we will never be able to correctly set the values related with recordsTotal and recordsFiltered, which means we will have our data actualized but a problem with the pagination itself. So the final method should be: function _fnAjaxUpdateDraw(settings, json) { // v1.10 uses camelCase variables, while 1.9 uses Hungarian notation. // Support both if (json.hasOwnProperty("d")) json = JSON.parse(json.d); var compat = function (old, modern) { return json[old] !== undefined ? json[old] : json[modern]; }; var data = _fnAjaxDataSrc(settings, json); var draw = compat('sEcho', 'draw'); var recordsTotal = compat('iTotalRecords', 'recordsTotal'); var recordsFiltered = compat('iTotalDisplayRecords', 'recordsFiltered'); if (draw) { // Protect against out of sequence returns if (draw * 1 < settings.iDraw) { return; } settings.iDraw = draw * 1; } _fnClearTable(settings); settings._iRecordsTotal = parseInt(recordsTotal, 10); settings._iRecordsDisplay = parseInt(recordsFiltered, 10); for (var i = 0, ien = data.length ; i < ien ; i++) { _fnAddData(settings, data[i]); } settings.aiDisplay = settings.aiDisplayMaster.slice(); settings.bAjaxDataGet = false; _fnDraw(settings); if (!settings._bInitComplete) { _fnInitComplete(settings, json); } settings.bAjaxDataGet = true; _fnProcessingDisplay(settings, false); } Do you agree with this solution? Do you think you can incorporate it in a future release? Best Regards
- 11th Nov 2016DATATABLE LOST RESPONSIVE AFTER AJAX REFRESHhi everyone So i'm using responsive.datatables library to manage my mysql-php data into it i have a rental car backend and i wan to manage my cars inside datatable (image_1) so when i do Add car or edit car it redirect me to another div which contain requested action after adding or editing when i make a return back to datatable cars list i lost responsive (image_2) and i cant recover it only if i refresh page or resizing navigator window ? any suggestions ?
- 28th Oct 2016Ajax pagination is causing issueHey Guys, Please refer this screenshot. Everything looks like its working but pagination is having an issue. Sometimes when I go back & fro, screen gets freeze like in screenshot. Code looks just like examples snippets. Here is test url where I have setup demo. Also I see some discrepancy in records nos when I go next & prev. When I do next, it goes from 1,10 then 11,20 then 21,30 but when I click on prev when I am on 21,30 it comes back on 12,21.. Weird.. Also i think its not calling db as expected.. Please help me with it..
- 11th Aug 2016Adding into via ajax json DataTable drawis it possible to fill a row cell with a