jQWidgets Forums

jQuery UI Widgets Forums Grid Word Wrapping

This topic contains 4 replies, has 2 voices, and was last updated by  shimmoril 12 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Word Wrapping #6015

    shimmoril
    Participant

    Is it possible to enable word wrapping within the grid? We’ve got a large number of columns to display in a fairly small area, and being able to wrap text would be very useful.

    Word Wrapping #6019

    Peter Stoev
    Keymaster

    Hi shimmoril,

    You can enable word wrapping by returning HTML with support for word wrapping from the columns cellsrenderer function. However, the rows height will not be adjusted automatically.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Word Wrapping #6041

    shimmoril
    Participant

    What do you mean by ‘HTML with support for word wrapping’?

    When you say that the row height will not be automatically adjusted, I assume you mean that we would need to manually specify the row height via the grid ‘rowsheight’ property? And if we didn’t set it correctly the contents of the row would not appear properly?

    Word Wrapping #6042

    Peter Stoev
    Keymaster

    Hi shimmoril,

    1. HTML with enabled word wrapping i.e with appropriate setting for the CSS white-space property. By default, The cells in jqxGrid are with disabled text wrapping i.e the value of white-space is set to ‘nowrap’.

    2. Yes, Rows Height will not be adjusted automatically depending on the cells content and the wrapped text will not be displayed, if the row’s height is smaller than the cell’s text height.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Word Wrapping #6043

    shimmoril
    Participant

    Thanks Peter.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.