NG grid dynamic row height

3,359 views
Skip to first unread message

Hoki Tam

unread,
Feb 11, 2013, 2:46:32 PM2/11/13
to ang...@googlegroups.com
Hi everyone!

I'm using NG grid in a project, and because items that are displayed in an NG grid may be too long (see plnkr below), i put the items in a div so that it may be wrapped:


But even though the content of the "long message" is wrapped as desired, the height of the row does not adjust dynamically, and therefore parts of the message is hidden. I know that there is a rowHeight option that we can set in the ng grid options. However, changing that changes the height for all rows, which is not desired, since not every row necessarily have contents that are too long and requires wrapping onto the next line.

All other topics I have seen so far only discuss changing the entire grid height dynamically. Is there a way to either have the NG grid row height adjust dynamically based on the content inside, or a way for me to change the height of only one row without changing the other rows? 

Thank you very much!

Sudarshan Sreenivasan

unread,
May 26, 2013, 6:23:53 AM5/26/13
to ang...@googlegroups.com, hoki...@gmail.com
I needed the same functionality however i do not think it is supported yet. Look at issue https://github.com/angular-ui/ng-grid/issues/21 for more details
Reply all
Reply to author
Forward
0 new messages