Search
3039 results 2551-2560
Forum
- 23rd Nov 2016how to submit present select checkboxes ids and existing selected check boxes at a time?how to submit present select check boxes ids and existing selected check boxes at a time is it possible?, If possible please help me
- 7th Apr 2016Use 'Select' tool (with checkboxes) - as a form field?Working now - For anyone else that may be looking, this page put me on the right track...: http://www.gyrocode.com/articles/jquery-datatables-checkboxes
- 7th Mar 2010Checkboxes in tableHi Michael, You've got the data in the sData variable (the code serialises it) so all you need to do is fire off an XHR (or a standard HTTP submit) with the data: http://api.jquery.com/jQuery.ajax/ . So the exact answer depends on how exactly you want to do it. Allan
- 7th Jan 2010how to dynamic create checkboxs for "select All" by datatable?thank you for the help,got it
- 18th Aug 2017Select checkboxes don't render in theadThere's a bug in the CSS for Select; the select-checkbox class is styled for td and th elements, but the th elements' parent is declared as tbody, instead of thead
- 7th Jun 2017check checkboxes and select the rows in 1st table and row adjacent to 2nd table.js file $(document).ready(function() { var table = $('#example').DataTable( { scrollY: false, scrollX: "100%", scrollCollapse: true, bPaginate : false, dom: 'Bfrtip', buttons: [ { extend: 'pdf', exportOptions: { modifier: { selected: true } } } ], 'columnDefs': [{ 'targets': 0, 'searchable':false, 'orderable':false, 'className': 'select-checkbox novis', 'render': function (data, type, full, meta){ console.log("Data: " + data); return $(' <div/>').text(data).html(); }}], 'order': [1, 'asc'], fixedColumns: { leftColumns: 1, rightColumns: 0 } } ); // $(".right-scroll").on('click', function() { // document.querySelector('.dataTables_scrollBody').scrollLeft += 40; // }) // $(".left-scroll").on('click', function() { // document.querySelector('.dataTables_scrollBody').scrollLeft -= 40; // }) /*$('.dataTables_scrollHeadInner tr th:first-child').addClass('staticCol'); $('#example tr').find('td:first-child').addClass('staticCol'); var abc = $('.DTFC_LeftWrapper').html(); $(document).on('click',function() { $('.DTFC_LeftWrapper').html(abc); $('.DTFC_LeftWrapper').find('.staticCol').removeClass('staticCol'); });*/ var colIndex = 0, widths = []; $('.dataTable thead th').each(function() { widths.push(parseInt(this.style.width)+25); }); $(".right-scroll").on('click', function() { if (colIndex == widths.length-1) return; document.querySelector('.dataTables_scrollBody').scrollLeft += widths[colIndex]; colIndex++; }) ; $(".left-scroll").on('click', function() { if (colIndex == 0) return; colIndex--; var scrollLeft = 0; for (var i=0;i<colIndex;i++) { scrollLeft+=widths[i] } document.querySelector('.dataTables_scrollBody').scrollLeft = scrollLeft; }); // $(".DTFC_LeftBodyWrapper tbody tr td.novis").on('click', function(){ // console.log("DTFC_LeftBodyWrapper clicked"); // }); /*$('.DTFC_LeftBodyWrapper tbody tr td.novis').on('click', 'input[type="checkbox"]', function(e){ e.stopPropagation(); e.preventDefault(); $(this).prop("checked",true); var $row = $(this).closest('tr'); if(this.checked){ $row.addClass('selected'); } else { $row.removeClass('selected'); } console.log(this); });*/ $('#example_wrapper tbody').on( 'click', 'input[type="checkbox"]', function () { var $row = $(this).closest('tr'); if(this.checked){ $row.addClass('selected'); } else { $row.removeClass('selected'); } } ); });
- 4th Sep 2015Buttons Plug-in: ColVis - Many columns with checkboxesWhat needs to be done to support a scrolling popup list of 50 columns and each entry can be checked/unchecked? Anyone have a sample of this for DataTables 1.10.9?
- 24th Sep 2014how to submit checkboxes on multiple pagesWe have requirement, like we will have mutlple employees spanned across multiple pages. I have a button to move them. When i click on the button, i should be able to capture all the checked boxes on multiple pages. But i am only able to capture check boxes on the active page. But if i traverse, i can still the check boxex checked but not able to capture them. If possible, please help me out..
- 28th Aug 2014How to make a column consists of Checkboxes?I have a column of data that is true/false from ajax. The examples I can find all uses legacy options, how should I implement this?
- 31st Mar 2014How to combine fnFilter results with checkboxes?We have some cheboxes, they do their work but they overwrite while filtering and while checking two different boxes it will show only the last checked box. [code] $("#filters :checkbox").change(function(){ if($(this).is(":checked")) { dataTable.fnFilter( "^"+ $( this).attr("val") + "$", $(this).attr("column"), true, true ); } else { dataTable.fnFilter("", $(this).attr("column"), false); } } ); [/code]