Search
23679 results 3021-3030
Forum
- 10th Dec 2015How to get the columns in the initComplete eventI am using Jquery datatable to generate a empty table that i need to plot shifts into from some ajax data. My headers contains dates which i need to compared to my ajax data objects to see if they are the same, then insert a shifts html element. Unfortunately i have only been able to grab the Settings object in the callback, but it is ill advised to use it and hope for it to last, so any other way of doing this would be greatly appriciated. Thanks in advance
- 10th Dec 2015DataTable sortable not woking in some columns;I have a table about dataTable ,there has one column I set the data 'null',then render it with the full data's compute result ;And I set this column "sortable:true',however,unfortunately,it don't working;some time,it working ,but,even if working ,the order is disorderly,It is no positive sequence or reverse order ;who can tell me what's reason ,thanks;
- 5th Dec 2015Header and body columns and row misaligned in Frozen columnHi I am using jquery 1.7 with primefaces 3.5 version for datatables with rowspan and colspan in headers in frozen column. when column freezed then header's row repeat with height='0' px dynamically. When removed these header's line by style ='none' then headers removed but row and column misalligned.
- 24th Nov 2015Columns search and horizontal vertical scrolling both togather not wokingHello, I have datatable 1.10.9 where i have used individual column search in each column, and tried to use horizontal and vertical scrolling, When i use //"scrollY": 400, //"scrollX": true, Then my serverside search is not working at all, means while input value in box, nothing happening. As soon as i mask above codes, search works fine, Any defect or problem? Thanks,
- 17th Nov 2015use orthogonal arrays data in columnsI've read about orthogonal data (https://datatables.net/examples/ajax/orthogonal-data.html) and nested objects (https://datatables.net/examples/ajax/objects_subarrays.html). Datas are provided via ajax. The question is how to combine this types together - I need to print out elements of array with orthogonal data, something like this: [ {type:customer, name: Name1, phone: [phone1, phone2], email: email1}, {type:supplyer, name: Name2, phone: [phone3, phone4], email: email2}, {type:customer, name: Name3, phone: phone5, email: [email3, email4] ] I've tried to use custom js function test for Column rendering: 'render' = 'test()' but unsuccesfully, it generates error: Uncaught TypeError: a[i[j]] is not a function, may be because data is provided by ajax.
- 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