User friendly for extra wide tables?

User friendly for extra wide tables?

mihomesmihomes Posts: 165Questions: 23Answers: 0
edited January 2014 in General
Wondering if anyone has come up with anything for extra long/wide tables when using DT. I know there is the scrolling option and I have that in place, however, it only seems useful if you are displaying 20 rows or so on the page. Say you have 100 or more showing on the page... well if you need to move to the right to see the rest of the columns for a row you have to scroll down to the end of the table to get to the scrollbar and by the time you go back up probably have no idea what row you were looking at.

Adding the scrollbar to the top really isn't an option either as you could always be looking at a row 'in the middle' and have the same problem. Anyone have any suggestion for this or run into the same problem and came up with something?

Replies

  • nesl247nesl247 Posts: 3Questions: 0Answers: 0
    Sounds like you want the FixedColumns extra. http://datatables.net/extras/fixedcolumns/
  • mihomesmihomes Posts: 165Questions: 23Answers: 0
    I have to admit I never noticed this before. I will play around with it, but have my doubts if it will do the job or not. Mainly as my first column is always a checkbox to allow for delete/download though I see you can fix more than one column. I am also using a responsive design.

    Is paging eliminated with this?
  • mihomesmihomes Posts: 165Questions: 23Answers: 0
    Keep getting 'TypeError: $.fn.dataTable.fixedColumns is not a constructor'

    [code]
    new $.fn.dataTable.fixedColumns( dt );
    [/code]

    dt is my table...
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited January 2014
    Are you using FixedColumns 3.0.0? I'm going to guess not :-). http://datatables.net/download .

    > Is paging eliminated with this?

    No - see http://datatables.net/release-datatables/extras/FixedColumns/left_right_columns.html

    Allan
This discussion has been closed.