Search
18435 results 2671-2680
Forum
- 22nd Nov 2020Can't join columns with columnDefs with ajax dataKevin, thank you very much! Now everything I wanted works well!
- 17th Oct 2020add delete button in ajax queryPlease provide more information of what you are wanting to do. Kevin
- 15th Sep 2020Pagination not updating / working with ajaxYep, I asked for the JSON, to see what the server responded with. If your draw value isn't the same as the one in the request, you'll see this behaviour. Colin
- 7th Sep 2020How get datas from api from ajax, when api with 'Authorization': 'Bearer ' + `${token}`We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here. Cheers, Colin
- 2nd Aug 2020select field (using Ajax loaded data) to load dynamically the pair: label, valueThank you for you help. Ok, first I going to upgrade to 1.9.4 and if continue de issue I will contact again. Greetings!
- 8th Jun 2020Ajax Sorl sort columns DatatableThanks. I have 11.000 records. In the end I was able to solve it: var table = $(this.target).dataTable({ "bJQueryUI": true, "pagingType": "full_numbers_no_ellipses", "dom": "tr" + "<'row'<'col-xs-6'l><'col-xs-6'p>>", "drawCallback": function (settings) { var api = this.api(); $('#pager-header').html(settings._iRecordsTotal); // Output the data for the visible rows to the browser's console // console.log(api.rows({ page: 'current' }).data()); }, "rowCallback": function (row, aoData) { var description = "..."+ aoData[5][0].toString().substring(0,50)+"..."; var title = ''+ aoData[4][0] +''+''+' '+ description+' ' $('td:eq(1)', row).html(title); }, "bLengthChange": true, "bProcessing": true, "bServerSide": true, "sAjaxSource": null, "fnServerData": function (sSource, aoData, fnCallback, settings) { // Rownumber var rows = getSetting(aoData, 'iDisplayLength'); self.manager.store.addByValue('rows', settings._iDisplayLength); // Filtering if (typeof q != 'undefined') { var q = getSetting(aoData, 'sSearch'); if (q.length > 0) self.manager.store.addByValue('q', q); else self.manager.store.addByValue('q', '*:*'); } self.manager.store.addByValue('q', '*:*'); // Fields self.manager.store.addByValue('fl', Mfields); self.manager.store.addByValue('start', parseInt(settings._iDisplayStart)); self.manager.doRequest(); self.manager.setCallback(this, fnCallback); } , "aoColumns": [ { aoData: "id" }, { aoData: "title", "defaultContent": "" }, ] }); Thank you :)
- 5th Jun 2020Ajax post - is there any way to get actual JSON?Your screenshot clears up what you are asking about. Thats why Colin asked for a test case. You can use ajax.data to convert to JSON string. See the last example in the docs. Kevin
- 1st Jun 2020I am getting data by ajax to my datatable but the view is squeezed.Thanks a lot @kthorngren . Issue resolved with style=width:100%
- 22nd Apr 2020Ajax & serverprocessing and multi-selection across redraws (Feature request?)If I understand it correctly, this would still erase the lines from dom and in turn removing the selection. :( Thanks anyway
- 22nd Apr 2020Datatable AJAX Join Tables to Get JSON valuesThanks for posting back - good to hear you've got it fixed. Allan