Search
11152 results 1111-1120
Forum
- 31st Aug 2020Server side processing paging, sort and search not workingThanks for the answer, Allan! I read the server side manual carefully and noticed the errors you mentioned. In addition, the amount of records at the moment does not require a server side, as you also mentioned. I am now using client side. Thanks again!
- 10th Aug 2020Seach and sort stuck on Processing when true return json trueWe'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
- 16th Jun 2020Date sort doesn't work as it shouldYes, syntax error. Javascript and jQuery are case sensitive. $.fn.dataTable.moment("DD.MM.YYYY HH:mm:ss"); Take a look at the German moment.js locale file. That gives you a good overview of the correct syntax: https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/locale/de.js
- 15th Jun 2020remove sort icons when using row.add functionThis code: { data :'',render: function ( data, type, row, meta ) { return "<button class='btn btn-info btn-sm remove-linhafatura'><i class='fa fa-minus'></button>"; }, 'bSortable': false, }, Goes into either your columns or columnDefs option. The row.add() API is looking for an array of values but is not expecting config options. Kevin
- 14th May 2020Sort in Anchor Tag doesnt work in some columnsPlease provide a link to a test case in accordance with the forum rules. https://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read#latest
- 30th Apr 2020Sort by source data and not by display dataThanks. Works as i expected!!
- 25th Apr 2020How to sort properly content of Select input?Thanks Kevin. I found another solution: case 8: column.data().unique().sort( function (x, y) { x2 = $('<a/>').html(x).text(); y2 = $('<a/>').html(y).text(); return x2 == y2 ? 0 : x2 > y2 ? 1 : -1; } ).each(function (d, j) { var sText = $('<a/>').html(d).text(); select.append('<option value="' + sText + '">' + sText + '</option>'); }); break; But as my skills in javascript are very limited, I have no idea how "good practice" it is...
- 13th Apr 2020Put a drop down to sort in the place of the seach boxThanks for posting back - good to hear you've got it working now. Allan
- 7th Mar 2020UploadMany sort orderNo, you would need to remove them, and re-add, I'm afraid. Colin
- 27th Feb 2020KeyTable sort of working, but not allowing editing of cells directlyThanks Kevin, this didn't exactly answer but put me on the right path. I had to remove the header and column add-ins which let keys full work.