SlickGrid icon indicating copy to clipboard operation
SlickGrid copied to clipboard

Word Wrap Feature in Slick grid.

Open mathankumarcv opened this issue 14 years ago • 8 comments
trafficstars

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

also posted the same request in the google groups.

mathankumarcv avatar Dec 17 '10 09:12 mathankumarcv

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.

mleibman avatar Jan 10 '11 18:01 mleibman

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.

Gaurav-Rai avatar Mar 04 '15 13:03 Gaurav-Rai

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

danjger avatar Mar 04 '15 15:03 danjger

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.

froodian avatar Mar 04 '15 20:03 froodian

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

6pac avatar Mar 05 '15 01:03 6pac

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?

rg-coder avatar Mar 22 '17 12:03 rg-coder

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.

6pac avatar Mar 22 '17 12:03 6pac

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

On 22 March 2017 at 12:45, Ben McIntyre [email protected] 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 .

esmondb avatar Mar 22 '17 13:03 esmondb