View Full Version : Handle grid resize

13 Mar 2012, 7:43 AM

I have a grid, a store and a model.

The model provides some special html with the convert method for a field. This method uses the width of the grid.
Works fine as long as the user do not resize the grid.

Of course, I can refresh the grid with: grid.getStore().load(). But this will cause a new request to the server and the current scrollstate gets lost.
Is there a better method. I already tried without success: grid.getView.refresh().

Thank you

13 Mar 2012, 10:52 AM
The grid may fire the resize event that you could then update the records.

14 Mar 2012, 5:01 AM
Yes, of course, I have to use the resize event.

But that is not the problem. I want to prevent a reload for the mentioned reasons:
- additional request
- scroll state

So the problem is not when to do it. It is how to do it.