• joefridaywebmaster

    (@mshragesnetnet)


    Database table has many columns and we need a horizontal scrollbar for shortcode wpdataaccess. Even in wide page template we cannot see many columns.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi,

    To add a horizontal scrollbar add the following JSON in column “Table options (advanced)”:
    {"scrollX":true}

    This link might be helpful as well:
    https://datatables.net/forums/discussion/comment/128441/#Comment_128441)

    You might also consider to make your table responsive. Just set output to responsive, number of columns to 0 and type to modal or collapsed.

    Let me know of this helps…

    Best regards,
    Peter

    Thread Starter joefridaywebmaster

    (@mshragesnetnet)

    I am somewhat new to WP Data Access so having trouble locating “Table options (advanced)”.

    Thread Starter joefridaywebmaster

    (@mshragesnetnet)

    After further searching I did find the Table options (advanced) option in Data Publisher. Although, I copied {“scrollX”:true} there, it is still not showing the horizontal scrollbar.

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi,

    Can I see your table? Doe you have a public URL?

    The plugin uses jQuery DataTables to populate the table. From the “Table options (advanced)” column you can add any available jQuery DataTables option and function. You just need to make sure that you enter valid JSON. You can find the documentation here:
    https://datatables.net/reference/option/

    Best regards,
    Peter

    Thread Starter joefridaywebmaster

    (@mshragesnetnet)

    Hi,

    Our website is mostly restricted to logged in members only, so we would have to do a TeamViewer screen sharing to see the table(s).

    In looking at the Data Publisher edit with the Table options you suggested, the Test Publisher button does NOT show the horizontal scrollbar and neither does the page with the shortcode on it UNLESS the F12 key is pressed. If the F12 key is pressed, the horizontal scrollbar does present itself, but only five columns show. Also with the F12 key pressed, the column label spacing and the data rows spacing are mismatched.

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Can you make the table responsive? A responsive table will be adjust to your device, so you’ll be able to view the table data even on a tablet or smartphone.

    Best regards,
    Peter

    Thread Starter joefridaywebmaster

    (@mshragesnetnet)

    I am pretty sure the table is set for responsive in Data Publisher.

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Can you add two screenshots:
    (1) A screenshot of your publication settings (Data Explorer)
    (2) A screenshot of the table (a web page I guess)

    Thanks,
    Peter

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Need horizontal scrollbar for shortcode wpdataaccess’ is closed to new replies.