• Resolved pbsbluejay

    (@pbsbluejay)


    Hello,

    I have TablePress 1.6 installed.

    I would like to know is it possible to make an entire row fixed when scrolling down the table?

    In other words when a viewer scrolls down the table the main row with a list of product names moves downward as well, so the viewer always know what product s/he is reading information on.

    Is this possible? If so, how can I do this?

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The FixedHeader Extension from http://tablepress.org/extensions/datatables-fixedheader/ might be helpful here.

    Regards,
    Tobias

    Thread Starter pbsbluejay

    (@pbsbluejay)

    Thanks Tobias

    The FixedHeader Extension worked.

    However the horizontal scroll bar at the bottom is now missing. I’m creating a 10 product comparison chart. Right now the table shows all product columns which overlaps the page. See HERE

    When I remove ‘datatables_fixedheader=”top”‘ from ‘[table id=1 /]’ the horizontal scroll bar reappears.

    I also tried to get the horizontal slider back by entering the following css code but it didn’t work…

    ‘<div class=”tablepress-scroll-wrapper”>
    [table id=1 /]
    </div>
    .tablepress-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    }’

    I made a small donation to you. Thanks again.

    Thread Starter pbsbluejay

    (@pbsbluejay)

    Also want to add:

    Under ‘Table Options’, all boxes are checked.

    Under ‘Features of the DataTables JavaScript library’ only ‘Use DataTables:’ and ‘Horizontal Scrolling:’ are checked.

    Thread Starter pbsbluejay

    (@pbsbluejay)

    Update:

    Ok, I was able to get the horizontal scroll bar to appear by unchecking the box for ‘Horizontal Scrolling:’ and insert the follow code in custom css…

    ‘#tablepress-1_wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    }’

    However, this did not correct the header being too wide.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I’m afraid that I have bad news here: From what I know about the external FixedHeader JS library (which I did not develop, but only make available as a TablePress Extension), it does not support horizontal scrolling at the moment.
    That means that it can’t really be used on tables that are too wide for the page 🙁
    Can you maybe increase the content width of the theme, to make everything fit?

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Make A Fixed Row’ is closed to new replies.