DataTables / FixedHeader

Fix the header, footer, left or right columns of a table in place, to always show them when scrolling
http://www.datatables.net/
Other
75 stars 83 forks source link

Fixed columns and header for dynamic data #91

Closed deepabagewadi closed 7 years ago

deepabagewadi commented 7 years ago

Hi Team, I'm using datatables to display the dynamic data.The data is sent from another page in , format and is updated to table using innerHTML. Now I need to fix the headers and first two columns.I used options but those didn't affect. Can anyone help me to achieve this.

Here's the code: $.get("emailpdata.jsp', function(data1){ var divtable=document.getElementById('example'); var xyz=data1;
divtable.innerHTML=xyz; });

I tried to provide options after innerHtml but its not working. Thank you in advance.

DataTables commented 7 years ago

There is no option to fix both headers and columns in DataTables and FixedHeader at the moment. See #7.

deepabagewadi commented 7 years ago

If you see the example its possible. I want to achieve similar to that. Because my data is updated dynamically the code in the link is not working. Link for the example: https://datatables.net/extensions/fixedcolumns/examples/styling/rowspan.html

DataTables commented 7 years ago

That's FixedColumns and does not use FixedHeader at all (this is the FixedHeader repo).

If you are having problems with your code, but the example is working, please post a link to your page by opening a support request in the DataTables forums as requested in the "new issue" text.