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: 63,602Questions: 1Answers: 10,486 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: 63,602Questions: 1Answers: 10,486 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 )

  • chboccachbocca Posts: 90Questions: 14Answers: 1

    @chimamire_no_tsuki. That's good. I find it works on the data rows only, not on the headers. Here's demo.

  • hasanyasar07@hotmail.comhasanyasar07@hotmail.com Posts: 1Questions: 0Answers: 0
    edited September 7

    Still no extension for 2.x?

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin

    Someone is welcome to write one. I'm not planning on doing so at this time.

    Allan

Sign In or Register to comment.