Search
23433 results 3001-3010
Forum
- 29th Oct 2015How to make columns appropriately sized to the data they represent ?If the data to display is just a two digits number then dataTable still use big space to occupy for the data. How to make the column sized as the data ?
- 26th Oct 2015Export to Excel - the data doesn't show up in the correct columnsI have a ASP MVC app that returns search results in a data grid. When I selected a few data rows from a search result and export to Excel, the data doesn't flow under the correct headings in excel. Example field: (the address spans to 3 different rows) Address: 120 E 87th Street New York New York 10128 US
- 5th Oct 2015How to hide rows associated with columns when column is hidden using Toggle option?Hello I have a data table which is been used in conjunction with AngularJS. When I try to hide a column using the below code, it does hide the table column header. It does not hide the data associated with that column. I have not set any FixedHeader or made use of sScrollX or sScrollY. $(document).ready(function() { var table = $('#table12').DataTable(); $('a.toggle-vis').on( 'click', function (e) { e.preventDefault(); // Get the column API object var column = table.column( $(this).attr('data-column') ); // Toggle the visibility column.visible( ! column.visible() ); } ); } ); Before image: [IMG]http://i61.tinypic.com/33cad79.png[/IMG] After image: [IMG]http://i57.tinypic.com/2q2jvoy.png[/IMG]
- 2nd Oct 2015DataTable Header columns lines separatorsHi! (Sorry for my bad english) I have this datatable header: http://imgur.com/8A9HQon and want take of the lines between each column and get this: http://imgur.com/wAq8tDJ I want modify this in Css files but cant figure how do it,maybe need change some in the .Js but i dont have much knowledge about .js Anyone can give me a hand? Thanks you!
- 30th Sep 2015remove select for some columns (child row)Hello, I use the new extension select instead of tabletools which had a useful sRowSelect option. I don't want to select the row when I click to open the child row. Do you have an idea to do that? Thank you, Rodolphe
- 28th Sep 2015how to get columns parameters from request object as array at server side(action class)?I am trying to get request object's param directly in an array. param structure: columns[0][search][value]......etc and explain me about this param?.i mean is it an json like that. i tried like this in my action class, String columns[]=request.getParametersValues("columns"); but this returns null. Help me out!! and how to give line break here in this forum? Thanks!
- 22nd Sep 2015Custom checkbox does not toggle to checked/unchecked on Fixed ColumnsDeleted
- 17th Sep 2015Column Filter does not work after reordering columnsI'm using the latest code for DataTables and ColReorder, but when you reorder a column and then try to filter on it, the wrong results are displayed. Example posted to http://live.datatables.net/negomese/1/edit?html,js,output Click Run with JS, then reorder the Position Column to the far left. Then try to filter by Position (at the foot of Position column) e.g. Software Engineer. No results are displayed. Do the same thing without reordering the column and 7 records are found.
- 14th Sep 2015csvFlash problem with num columnsHi, I'm wondering if there's a problem with my code or if there's perhaps a bug in buttons.flash. When I try to export to csv using the built-in csvFlash button, the code crashes at line 535 in buttons.flash.js: boundary + a[i].replace( boundary, '\'+boundary ) + boundary : Because the array a contains an int and not only strings. This array comes from the toArray() datatables function earlier. I initialized my table with data from a javascript array. Replacing the above line with: boundary + (a[i] + '').replace( boundary, '\'+boundary ) + boundary : works but is not a great solution. Even setting all column types to 'string' does not work. Any other suggestions? Unfortunately, I'm unable to provide a testcase using live.datatables.net as buttons.flash can't be selected as an import. Grateful for help, Anders
- 2nd Sep 2015Dynamic Columns Add/RemoveI have seen a few topics throughout the forum on this topic. I use .NET and MS SQL to deliver content to the browser. The user can can customize their column order and show/hide. I see you need to define your table headers in advanced. What is the best Solution to accomplish this in DataTables? Thanks