Need scrollable tablebody with yadcf column search

Need scrollable tablebody with yadcf column search

Rahul_PwCRahul_PwC Posts: 9Questions: 2Answers: 0

I am using datatables cdn in my webapplication, where i am using .dataTable() method ,i cannot put scroll on the table only , it is coming outside of the paging. I checked with their portal, everywhere scroll is used on .DataTable() but not on .dataTable(). I cannot use .DataTable() as i am using .yadcf as well. Can anyone have any idea how to do that ?

Replies

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923
    edited December 2020

    I'm not clear on what you are having a problem with. I updated an old YADCF example I have to show both horizontal and vertical scrolling:
    http://live.datatables.net/tomimadu/58/edit

    I checked with their portal, everywhere scroll is used on .DataTable() but not on .dataTable()

    When applying Datatable's options it doesn't matter which you use. For more information on the differences please see the Install doc.

    In the example I used yadcf.init() instead of chaining the yadcf init off the Datatables initialization.

    If you still need help please build a test case showing what you are trying to do so we can help.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

This discussion has been closed.