Putting it all together
Putting it all together
Hi folks,
I was wondering if anyone has an example where all of the features of data tables along with extras are working applied to a single table? The reason I ask is because I spent a ton of time trying to get them to all work together but it seems to me that the various extras where not meant to be used on the same table. Here are my requirements:
1. Have locked header and 1st column to where header and 1st column are always visible regardless of the size of the table
2. Have re-sizable column widths
3. Have draggable columns to where column order can be changed
4. Sort by specific columns (asc/desc)
5. Have footer rows which do not scroll - are locked
DataTables support all of the above scenarios but through various extras. Each one of these extras work fine on their own but when all this is put together, it displays some very strange behavior. For example, columns and their headers get severely misaligned when column width is re-sized and if I'm also using the fixedColumns extra to fix the 1st column in place.
So basically I was wondering if anyone can provide an example that covers all of the above scenarios used together on a single table and working properly?
I was wondering if anyone has an example where all of the features of data tables along with extras are working applied to a single table? The reason I ask is because I spent a ton of time trying to get them to all work together but it seems to me that the various extras where not meant to be used on the same table. Here are my requirements:
1. Have locked header and 1st column to where header and 1st column are always visible regardless of the size of the table
2. Have re-sizable column widths
3. Have draggable columns to where column order can be changed
4. Sort by specific columns (asc/desc)
5. Have footer rows which do not scroll - are locked
DataTables support all of the above scenarios but through various extras. Each one of these extras work fine on their own but when all this is put together, it displays some very strange behavior. For example, columns and their headers get severely misaligned when column width is re-sized and if I'm also using the fixedColumns extra to fix the 1st column in place.
So basically I was wondering if anyone can provide an example that covers all of the above scenarios used together on a single table and working properly?
This discussion has been closed.
Replies
Here is the video of the issue. Notice that the Student Name column when reordered will show up twice. However once I refresh the page the correct order is restored because the table is re-rendered properly.
http://screencast.com/t/iGbVJq4rvG
This one is not supported I'm afraid. There is a 'ColReorderWithReisze' plug-in that was developed, but not by myself and so I can't support it. I don't think it works with current version of DataTables.
Beyond that, I think this does all that you need: http://live.datatables.net/iRAk/1/
Allan
Also do you have advice with regards to my 2nd issue above?
No. Long term, yes, but its not a priority at the moment, relative to the other things planned for DataTables.
Regarding the second issue, I think you answered it yourself here: http://datatables.net/forums/discussion/19205/
Allan