Hi,
I would like to provide variable row height depending upon the content size. is it possible in Slickgrid? Can you point me towards any examples.
Thanks,
Hi,
I would like to provide variable row height depending upon the content size. is it possible in Slickgrid? Can you point me towards any examples.
Thanks,
Plain and simple, this is not supported in SlickGrid and likely will never be. Sorry.
This is possible but it's not trivial and you will likely take a performance penalty. The way SlickGrid works, it needs to be able to answer the following two questions rapidly:
When you use a static row height, answering these questions is trivial; however, with dynamic row height, you'll need to maintain a couple of extra data structures.
Here's roughly what I changed in Slick.Grid.js
To make this practical (performant), you'll also need a cache of row top offsets (a cache of sums of row size). This will enable quick computation for the first question and will allow for binary search to answer the second.
I hope that helps.