Search
43637 results 7231-7240
Forum
- 19th Mar 2015TableTools - Access export functions outside tableIs it possible to use buttons or links outside tabletools to generate an export (and bypass the included button menu). For example; Export to Excel Thanks!
- 15th Mar 2015jquery datatables selected row's data getting reset on paginated table while navigating on pagesI am using jquery datatables . http://jsfiddle.net/s3j5pbj4/2/ I am populating around 3000 records in paginated table.Problem is that If am selecting few checkbox and dropdown in first page and move to next page (by clicking on paginated next button) and again come back on first page , selected data is getting reset again (i.e. lets say every paginated page shows 10 rows on each page and if I have selected 5 rows on first page and then navigate to next page and again come back to first page selected row's data gets reset again). I want my user should be able to see what all selection he made on any page and then submit . Am i am doing something wrong here? $(document).ready(function() { var oTable = $('#dbResultsTable').dataTable({ "sPaginationType": "full_numbers" , "paging": true, "ordering" : true, "scrollY":false, "autoWidth": false, "serverSide": false, "processing": false, "bDeferRender": true, "info": true , "lengthMenu": [[10,25,50 ,100, -1], [10,25,50, 100, "All"]], "scrollX": "100%" , "aoColumns":[ { "mDataProp": null}, { "mDataProp": "operation"} ], "sAjaxSource" : "ResultPopulator", "bJQueryUI" : true, fnRowCallback : function(nRow,aaData, iDisplayIndex) { jQuery('td:eq(0)', nRow).html('<input id="checkId_' + nRow+ 'name="" type="checkbox")>'); var operationString = '<select name="operation" >'; operationString = operationString + '<option selected disabled hidden value=""></option>'; for ( var i = 0; i < aaData.operation.length; i++) { operationString = operationString+ '<option>' + aaData.operation[i]+ '</option>'; } operationString = operationString + '</select>'; jQuery('td:eq(1)', nRow).html(operationString); return nRow; }, } ); function validateFields(){ var status = true; var rowSelected = false ; var rows = $("#dbResultsTable").dataTable().fnGetNodes(); for (var i = 0; i < rows.length; i++) { var cells = rows[i].cells; if(cells[0].children[0].checked){ rowSelected = true; var operation = cells[1].children[0].value; if(operation==""){ var msz = " Please select an operation" status = false ; printMsz(msz); break; } } }
- 3rd Mar 2015editable and readable data tablehow can we develop to add a new column in datatable in editable mode and readable mode which depends on some conditions
- 27th Feb 2015Table redrawn is not happening correctly after multiple column reorderings.Hi I am facing issue with multiple column reorderings. Here is the js bin link for the short demo.(http://live.datatables.net/butitesi/1/edit?html,css,js,console,output) There in the demo we have two buttons which will set the column ordering. If we click individual buttons , the ordering is fine. The problem is if we click the buttons in the sequence then finally what we have set is not ordered correctly. Could you guys help me out what is happening ...... Thanks in advance.
- 27th Feb 2015how can apply php in data table?please tell m.....
- 23rd Feb 2015Column sorting for textbox inside tableHi, https://datatables.net/examples/plug-ins/dom_sort.html As like in the above demo, I have one Amount column. And while displaying the amount we are applying the comma separated for the amount. Then we found that the sorting is not working. Please give some valuable solution for this issue. Regards Santosh
- 23rd Feb 2015how to save in table to *.txt file without quotesI find this disc.: http://datatables.net/forums/discussion/9468/how-can-i-export-data-to-txt but it saves with quote mark. I need without the quotes. Code, that I use: $('#table_users').dataTable( { "dom": 'T<"clear">lfrtip', "oTableTools": { "sSwfPath": "http://datatables.net/release-datatables/extensions/TableTools/swf/copy_csv_xls_pdf.swf", "aButtons": [{ "sExtends": "csv", "sFileName": "uids*.txt", "sButtonText": "save txt" }], "oSelectorOpts": { page: 'current', "filter": "applied" } } } ); Sorry for my english and sanks :)
- 19th Feb 2015Data table with MVC jsonresult does not seem to functionhttps://debug.datatables.net/ecirab Above is my debug. I was having issues getting my datatable to load json being passed to it via an ajax call. I decided to force my json call to return the same json used in the ajax exaple provided on this site (just to see it working) Yet I still receive the following error "jquery.dataTables.js:3287 Uncaught TypeError: Cannot read property 'length' of undefined" I have googled around and saw different reasons for this error such as not defining the containing array with in the Column parameter. Yet the example seems to imply that this is not needed. Which makes me assume "data": is default. Any idea what I am doing wrong> Debug above.
- 14th Feb 2015Reload javascript source tableHello, I have a datatable with javascript source array data. On button click this array is recalculated and i want to reload the datatable. How i can do it? Thank you in advance!
- 13th Feb 2015Passing data between table in different pageHi, I've an important question. I need to pass the selected row in a datatable in a new datatable prensent in a popup windows. How I can do it? Can you help me please?