Is there any plugin available for DataTable 2.0.0 which can resize columns?

Is there any plugin available for DataTable 2.0.0 which can resize columns?

TufailTufail Posts: 2Questions: 1Answers: 0


This is what my DataTable looks like and I need the feature to resize columns. I've found some plugins but they are not compatible with DataTable 2.0.0. I've also tried simple JavaScript code to implement the functionality but that didn't work for me.

Please help.

Thank you.

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Not as far as I am aware. There were some third party ones for 1.x, but it is not something I've ever written an extension for, sorry.

    Allan

  • TufailTufail Posts: 2Questions: 1Answers: 0

    Are you planning to do that, Allan?

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    It isn't on my agenda. Sorry.

    Allan

  • chimamire_no_tsukichimamire_no_tsuki Posts: 2Questions: 0Answers: 0
    edited May 7

    Hi All.
    I tried to use colResize extension too, and found one solution. I take this extension colResize and do one change in line 319:
    --- that._tableHeaders = that._table.find("thead > tr:first-child > th");
    +++ that._tableHeaders = that._table.find("colgroup > col");
    and it work for me.
    CSS(https://cdn.jsdelivr.net/gh/smasala/ColResize@v2.6.0/css/dataTables.colResize.css )

Sign In or Register to comment.