Search
23531 results 2671-2680
Forum
- 2nd Jun 2021i have jQuery Data table in some columns contains font awesome iconsthat's no problem. if you don't know how to do it just search the forum. I think I posted a couple of things on that matter. Here is an example: { data: "contract_copy.done", render: function (data, type, row) { if (data <= '0') { return '<i class="fa fa-square-o fa-lg text-center" style="display:block" aria-hidden="true"></i>'; } return '<i class="fa fa-check-square-o fa-lg text-center" style="display:block" aria-hidden="true"></i>'; } }
- 25th May 2021I have two header one is for filter search for all columns and second one is use for exportingDuplicate of this thread - please don't post twice. Colin
- 20th Apr 2021footerCallback doesn´t sum columns on Server-Side responseyea!!... that was the solution... thanks again Kevin!! "footerCallback": function ( row, data, start, end, display ) { var rsTot = table.ajax.json(); var api = this.api(), data; $( api.column( 2 ).footer() ).html(rsTot.ent); $( api.column( 3 ).footer() ).html(rsTot.sal); $( api.column( 4 ).footer() ).html(rsTot.exi); $( api.column( 5 ).footer() ).html(rsTot.apd); $( api.column( 6 ).footer() ).html(rsTot.dis); }
- 16th Apr 2021Iterating through columns with a check box with the box that is checkedLooks like you are using the Gyrocode checkbox plugin which uses the Select extension. The example shows how to get the selected rows. Kevin
- 9th Apr 2021Responsive not working in mobile view - missing some columnsOops, I missed that, sorry. Thank you
- 19th Mar 2021Columns adjust issue when using Datatable inside an accordionIf you use the shown.bs.collapse event, as the Bootstrap documentation says, it will trigger once the animation for the accordion is complete. So yes, you'd get that flicker. You need to use the show.bs.collapse event, but also with a little delay since it is triggered before the table is visible in the DOM: $('#accordionExample').on('show.bs.collapse', function(e){ setTimeout(function () { $($.fn.dataTable.tables(true)).DataTable().columns.adjust(); }, 10); }); Allan
- 19th Feb 2021fixed columns using css messed upthank you mr.colin. the case is finished.
- 28th Jan 2021How to sort my datatable with multiple columns criteria but not common parameters.Thank you! I tried using that solution but it made the function of "Filter" I needed to Sort, not to Filter. Anyway I solved the problem by creating a new Column with Column.render() and returning numbers if certain criteria is met. Thanks!
- 4th Jan 2021Unable to calculate the sum of the columns in each pageGlad heading in the right direction! I'm not sure what you mean about your last query - can you update your webpage so that it shows that issue, please. Colin
- 1st Jan 2021Unable to calculate the sum of the columns in each page when pagination is other than 10Is this the same as your other thread? Colin