Search
43891 results 7301-7310
Forum
- 5th Jul 2014On Button click popup not appear after reinitializing table.Solve
- 20th Jun 2014How to get ColReorder to work when using bDestroy and filling table againI'm using a lot of Single Page Applications these days, and I can get ColReorder to work fine with the default approach. Works great if the user closes their browser and re-opens the same page, or even if they press F5. But I have buttons on many pages that change the criteria for the grid data and re-fill the grid from a new Ajax call, having the bDestroy attribute = true. When I do this the column order changes are lost. I have tried initializing ColReorder with the dom attribute or with the "new $.fn.dataTable.ColReorder..." approach. I have tried using localStorage to reload the previous configuration, as well as many other approaches, but without success. Sorry to say I can't post a link and I'm totally stupid about how to put up a jsfiddle etc. Thanks, Bob Graham
- 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