Search
43745 results 7291-7300
Forum
- 19th Jun 2014Lost formatting after updating table headers from ajax requestHere's the scenario: I load up a form with some generic headers. I'd prefer to load no headers and just hide the datatable for now. The client fills out the form and based on what checkbox they select a different results set AND results header is returned. I don't know what the headers will be until after they submit the form. Once they submit i use a $("#resultsHeader").replaceWith() to update the header columns of the datatable. Now I lose all my datatable styles and nothing seems to work. I have tried fnDestroy() and fnUpdate and nothing seems to work. you can see all my code at: http://jsfiddle.net/j7mQd/
- 18th Jun 2014DataTables warning : table id=example-Ajax errorI have this problem Status Code:500 Internal Server Error, i try to see the ajax response, it shows me 'This request has no response data available'. Any Help please
- 16th Jun 2014Why fnGetData() is returning the last row added to the table?Hi all, Forgive me if I am going absurd here, I need help as I found none on google. I have a dataTable in which I am trying to add and update the rows through js directly. When I added more than one new rows, I found that dataTable was adding the same row_id to every new created row. Some how I managed to create unique ids for the rows (did in fnRowCallback). "fnRowCallback": function (nRow, aData) { if (!$(nRow).attr("id")) $(nRow).attr("id", aData.DT_RowId); } Every row in my dataTable has an edit icon, clicking on which I have to populate the data associated with the underlying row into the text boxes available in a form. Please have a look at the following script; $('#banks-local').dataTable( ........ ).on('click', '.edit', function () { reset(); selectedRow = $(this).parents('tr'); var t = localTable.fnGetData(selectedRow[0]); selectedId = t.DT_RowId; selectedBank = t; $('#bankId').val(selectedBank.S_Bank_Master_GUID); $('#name').val(selectedBank.Bank_Name); $('#description').val(selectedBank.Bank_Description); $('#comments').val(selectedBank.Comments); }); NOTE: '.edit' is the class for edit icon. What problem I'm facing is that, although I am getting correct "selectedRow[0]", I am getting the data associated with the last inserted row only (not the one I am clicking on). It has blown me up completely.. Does anyone has any idea what I'm doing wrong here? Thanks, in advance for your help....
- 5th Jun 2014Empty Table before using Drop DownLooking for a way to show no results until a drop down is engaged.
- 28th May 2014DataTables warning: table id= - Requested unknown parameter '' for row 0.Hi there, I'm trying to setup my dataTables with JSON data via Ajax option. I succeed setting it, but I have some problems with the structure of my JSON. An example is maybe better than explanations! Working : http://jsfiddle.net/alrick/bVqQx/ Not Working : http://jsfiddle.net/alrick/bVqQx/1/ Any idea? Thanks
- 27th May 2014How do I combine these two functions in Datatables and Table Tools to merge?$(document).ready( function() { $('#example').dataTable( { "lengthMenu": [[10, 25, 50, 100, 250, 500, 1000, -1], [10, 25, 50, 100, 250, 500, 1000, "All"]] } ); } ); $(document).ready(function() { $('#example').DataTable( { dom: 'T<"clear">lfrtip', tableTools: { "aButtons": [ "copy", "csv", "xls", { "sExtends": "pdf", "sPdfOrientation": "landscape", "sPdfMessage": "Input message here" }, "print" ] } } ); } );
- 27th May 2014when i search through the table, my images disappear.as said, my edit- and delete-icons get hidden by datatables, if i do a search in the searchbox. my code is like: http://jsfiddle.net/jCehY/ somebody has a hint? Greetings
- 7th May 2014Want to set log in backend in Jquery data table with 3 tabs whenever user login and click any tabs.Hi, We have implemented datatable with three tabs. It is one page portal application, where we Want to set log in backend iwhenever users click any tabs. except the initial load where it is loaded for 1st time. Please help me to implement it.. Regards, Indubhushan
- 6th May 2014Datatables.api().ajax.reload() not cause table to refresh my location of scrollingI am using datatables to provide information. However, because of how often I refresh the data, the user will be pushed back to the top of the screen when I refresh the data, if they have scrolled down to the bottom of the list. How do I keep the datatable from resetting where the user is at scroll-wise.
- 25th Apr 2014How to send all table data to save as PDF ?I was added dynamic row in Fndrawcallback function, but this data not come PDF, Excel or CSV.