Search
43634 results 7271-7280
Forum
- 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.
- 14th Apr 2014How can i add sorting and pagination for dynamic tables using data table conceptAm having different tables with same id ,these tables are coming based on data from database. Now i need to implement functionality( pagination and sorting columns ) for these dynamic tables. Thanks, Harikrishna N.
- 11th Apr 2014Multi dimensional array in table rowHi people, I'm having a problem here with datatables. I want to show an array in my row, i'm not the best talking in English, but is something like this. [code] Username | Password | Something user1 | password1 | something1_1 | something1_2 | something1_3 user2 | password2 | something2_1 user3 | password3 | something3_1 | something3_2 [/code] Here is the debug link: http://debug.datatables.net/ayufal As you can see in my debug, the aaData item I want to show like this, is "historicoSituacoes" [code] "historicoSituacoes": [{ "id": 1, "dataSituacao": { "date": "2014-04-04 00:00:00", "timezone_type": 3, "timezone": "America/Sao_Paulo" } }] [/code] In this time I just have one in all, but sometimes it will be more than once. Could someone help-me with this? If you want to see the live page, the link is http://protesto21.com.br/titulo/intimacao/ User: 1oficio Password: p21 Thanks for all and sorry for bad english