Column resizing

Column resizing

oliverwoliverw Posts: 4Questions: 0Answers: 0
edited October 2009 in General
Has anyone implemented user resizable columns?

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Hi oliverw,

    As far as I'm aware, this hasn't been implemented by anyone yet. It's very much something that I've been thinking about doing, and plan to do as a plug-in to DataTables in future, but unfortunately, just not found the time to do it yet.

    Regards,
    Allan
  • mv5492mv5492 Posts: 10Questions: 0Answers: 0
    Hi Allan,

    I'd like this one as well. May I suggest a resize option to either wrap or nowrap the cell content on a resize that makes the column narrower than the content? Maybe even throw elipses (...) at the end of the content? I like to keep my row height the same for all rows when I can. hopefully, an option like this would still work with jEditable.

    Mike
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Hi Mike,

    Elipses are a tricky thing - there is some discussion of how they can be used with DataTables in this forum, and I believe there is a callback function for them somewhere in one discussion (being quick atm...) - but in a perfect world they would be done by CSS. It's not a world of course, so it would need to be implemented in Javascript. I think it would be up to the developer to implement this elipses function with any plug-in which were to resize the column if that is what they wanted. But CSS would just be so much easier - webkit does it very well. Gecko not as well by now.

    Regards,
    Allan
  • Jens GutzeitJens Gutzeit Posts: 22Questions: 0Answers: 0
    Simple column-resizing is easily done (though I'd only tested with firefox, since we force our customers to use that one). I had put a span inside each TH, then bind jquery-UIs resizable on that, with a callback-event function that replicates the width of the span on the TH. That works pretty well, but it might be a good idea to set a class on each TD, and set sizes there as well, using a JS-created node.
  • koosvdkolkkoosvdkolk Posts: 169Questions: 0Answers: 0
    Just some advertising for my plugin :)

    http://datatables.net/forums/discussion/8471/column-resize-plugin
This discussion has been closed.