mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.81k stars 1.98k forks source link

Word Wrap Feature in Slick grid. #122

Open mathankumarcv opened 13 years ago

mathankumarcv commented 13 years ago

I need the word warp feature in the slickgrid. how to implement it.

also posted the same request in the google groups.

mleibman commented 13 years ago

You can force word wrap via CSS on ".slick-cell", but keep in mind that it won't make the row be sized dynamically depending on the content. Row heights are fixed.

Gaurav-Rai commented 9 years ago

Every row does not necessarily have a multi line content, so I was looking for a way to dynamically adjust the row height while using word wrap feature for the cell content.

danjger commented 9 years ago

I am also interested in variable row height. I'm not sure what it would take to accomplish.

froodian commented 9 years ago

I'm not that familiar with the code that does this, but I expect variable row height would probably take a lot of work - one of the core assumptions slickgrid makes is that it can know based on a row's index when it should build/attach the DOM elements for the rows being scrolled into view and discard the DOM for rows being scrolled out of view.

6pac commented 9 years ago

I'd agree that it would probably quite a bit of work. There are other tables around, and a lot of the conversation recently about pinning rows and columns makes me wonder if a completely different type of grid - more an Excel style - is what is needed. While SlickGrid could theoretically be made to do all these things, it is worth asking if it would compromise the underlying simplicity and speed too much. This either points to a 'simple' and 'with the lot' fork of SlickGrid, or simply finding another grid that is better suited to an Excel type interface

rg-coder commented 7 years ago

Is anyone looking into this issue?

I want to break-word when it goes out of given width to display in multiple lines but I am unable to find any solution for this in slick grid. Could someone please help?

6pac commented 7 years ago

The only real option is to use the css overflow property to cut off the text and show the elipsis on overflow. You can't (AFAIK) cut on word boundaries without a lot of very processor intensive javascript customisation.

Variable row heights aren't happening any time soon.

esmondb commented 7 years ago

That's what I do and it seems to work fine.

On 22 March 2017 at 12:45, Ben McIntyre notifications@github.com wrote:

The only real option is to use the css overflow property to cut off the text and show the elipsis on overflow. You can't (AFAIK) cut on word boundaries without a lot of very processor intensive javascript customisation.

Variable row heights aren't happening any time soon.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mleibman/SlickGrid/issues/122#issuecomment-288387215, or mute the thread https://github.com/notifications/unsubscribe-auth/AELrPDrlC96CvnWxgxLWNJs0sIfnx9U2ks5roRfNgaJpZM4DpWQ9 .