Search
43637 results 7211-7220
Forum
- 1st Jul 2015Table tools return "undefined" on url while exportingHello, I have a problem with TableTools on exporting. When I click to the button it return an "undefined" on url and a 404 error. I'm using wordpress. Anyone can help me to fix this truble? ttp://login.todos.it/visualizza-interventi-inseriti/ usr. mario pwd. mariorossi
- 24th Jun 2015Is it possible to use tfoot cells to sort table data?Hello. One of the legacy manuals says the following: "Defining the 'tfoot' section is optional from the view point of DataTables, and if defined will be used in a similar manner to how thead is used, with the exception of not being able to use it to sort data.". And, as far as I can tell, this stays true even for the most recent version of the plugin. So, is there a quick way (such as adding some class definition or setting some option in my js code) to enable sorting function for tfoot cells, the same way it's assigned to thead elements out of box?
- 20th Jun 2015Can't be able to find datatable using .isDataTable in ui tabs with same table IDHi, I have , $(document).on("click", "#" + newCurrentWidgetId + "#add-line-items", function () { NewCurrentWidgetId = getCurrentWidgetId(); if ($.fn.DataTable.isDataTable('#' + NewCurrentWidgetId + ' #item-info-table')) { alert("Present"); } }); This is the case when i append tabs. when i append tabs above script gets loaded in which we have "newCurrentWidgetId " as id of that tab. We can open multiple tabs and "newCurrentWidgetId " changes everytime. Inside that "NewCurrentWidgetId " is returning current opened tab's id which is working well. And at last with every tab append i am also initiating the datatable with it's click function (code above). Now when more then one tab is appended simultaneously the above alert works fine in case of latest tab only. when i switch the tab it cannot find the datatable so no alert is coming. Don't know why. Every variable is changing fine. Need Quick help. Thanks in advance.
- 19th Jun 2015Passing more than one class selector to multiple tables identified byI am trying to implement the code found at http://www.datatables.net/examples/basic_init/multiple_tables.html, which uses the following: <script type="text/javascript"> $(document).ready(function() { $('table.display').dataTable(); } ); </script> ... <table id="" class="display" cellspacing="0" width="100%"> Since the class selector for my personal style is "compact cell-border hover", I tried the following, which consists in assigning my style declaration to a variable and passing it to the class selector, but it does not work. <script type="text/javascript"> var myTableStyle = "compact cell-border hover" $(document).ready(function() { $('table.myTableStyle').dataTable(); } ); </script> ... <table id="" width="100%" class=myTableStyle> To sum up: how does one use the multiple tables feature with a style other than one consisting of a single word?
- 11th Jun 2015How do you add padding to a table so that it doesn't run all the way to the edges?I tried doing this in css with something like; .display { padding-left: 50px; padding-right: 50px; } But it doesn't have any effect.
- 10th Jun 2015Need sorting only for table header but not need for filter.Please give solution for my problemI need to remove sorting when clicking filter on below coding and i have to remove filter for one column. $(document).ready(function() { $('#example').DataTable( { initComplete: function () { this.api().columns().every( function () { var column = this; var select = $('') .appendTo( $(column.header()) ) .on( 'change', function () { var val = $.fn.dataTable.util.escapeRegex( $(this).val() ); column .search( val ? '^'+val+'$' : '', true, false ) .draw(); } ); column.data().unique().sort().each( function ( d, j ) { select.append( '<option value="'+d+'">'+d+'</option>' ) } ); } ); } } ); } );
- 9th Jun 2015Data table not refreshing.Hi All I am using Server-side pagination in datatable. First time data loaded from server. But after page change, Sorting, record display change datatable not refreshed. This is happening only with ie 8& 9. My Code is as follows. $("#bodycontent").DataTable({ "columnDefs": [ { "visible": false, "targets": 0}], "aoColumns": mdata, "bServerSide": true, "bAutoWidth": false, "bProcessing": true, "drawCallback": function (oSettings, json) { updatePageInfoUsingOsettings(oSettings); }, "ajax": {"url": URL, "data" :datatobeSent(), "beforeSend" : function(request, setting){ validator(request, setting); }, error: function(jqXHR, exception) { alert(jqXHR.status); } } } ); Thanks in advance for help.
- 30th May 2015TableTools button not showing for Data TableHi everyone, I have a datatable I am developing that needs a button that will export the contents to CSV or Excel. Please find my datatables debug instance here: http://debug.datatables.net/aratoy I have included the DataTables, TableTools, and ZeroClipboard js files in my build, but still no "Export" button is appearing and no JS errors in firebug. Anyone have any ideas? Much appreciated, Ryan
- 28th May 2015Long table not workingI have about 3000 rows of data. DataTable doesn't seem to work on this. Link: http://live.datatables.net/nenafado/1/ Debug: ulavuv
- 25th May 2015How can I left align just the label of search in the data table jqyery??Search label is after the input why?? and how can I put it before