Hello,
I noticed this blurb in the latest release notes and it piqued my curiosity:
Auto-fit for column width, depending on cell text content
I couldn't find anything in the documentation, so I took a look through the grid code and found the autoFitColumn method. Are there any suggestions or documentation for using this method? Currently most of our grid columns have an explicitly defined width which in some cases may be a lot wider than what is actually needed based on the particular data being viewed. What I'd like to be able to do is after the grid has been bound to the data is to automatically resize the column widths so that they are only as wide as necessary. It seems like this method might be able to accomplish that, but I was looking for some guidance on if this would be a viable approach or if this method wasn't intended for this purpose. Thanks!
Regards,
Brian
I noticed this blurb in the latest release notes and it piqued my curiosity:
Auto-fit for column width, depending on cell text content
I couldn't find anything in the documentation, so I took a look through the grid code and found the autoFitColumn method. Are there any suggestions or documentation for using this method? Currently most of our grid columns have an explicitly defined width which in some cases may be a lot wider than what is actually needed based on the particular data being viewed. What I'd like to be able to do is after the grid has been bound to the data is to automatically resize the column widths so that they are only as wide as necessary. It seems like this method might be able to accomplish that, but I was looking for some guidance on if this would be a viable approach or if this method wasn't intended for this purpose. Thanks!
Regards,
Brian