Autoformat the cell

Hello,

I'm facing a new issue with your product. We are binding the data from the database, but some times the strings of the resultset are of 30 or 60 bytes and we could not find any way to have the dimension of the cell same as the string size.

We tried the cell style.wrap = true but nothing changed.

Could you please let us know if there is any way to this?

Thanks and regards

Erjona

Hi,

Well, you can pragmatically perform the task (auto-fit columns) on the client end. GridWeb provides a public script function named resizeColumnToFit, you can invoke it on the client script, e.g

GridWeb1.resizeColumnToFit(2, true);

The first argument needs a column index to be set, the second indicates whether to include the column header.

Thank you.