handle datatable column resize

handle datatable column resize

bczm8703bczm8703 Posts: 16Questions: 5Answers: 0

if there any event in datatable which I can use to handle when the column can resize on sort?

sample

after sorting the name column it is observed that the top scroll bar does not match with the bottom scroll bar

refer to this image

Replies

  • bczm8703bczm8703 Posts: 16Questions: 5Answers: 0

    hi, the sample link about expired. please use this instead

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,770

    Here is the page of events:
    https://datatables.net/reference/event/

    There isn't one for the column size changing. The column size could change during a search also. You can use the draw eventto update the scrollbars. I have not usedtable-response` so not sure how to keep the two in sync.

    Kevin

  • bczm8703bczm8703 Posts: 16Questions: 5Answers: 0

    hi. thanks for the reply. i managed to solve my issue using the draw event.

Sign In or Register to comment.