PDA

View Full Version : Need an event to capture the drag performed to resize the grid



shanksencha
21 May 2015, 3:00 PM
Hi All,

There is a resizable grid. User holds the corner of the grid to resize it to larger / smaller.
Need to perform an action once the drag done / complete.

Could you please shed some light on this.

Gary Schlosberg
21 May 2015, 3:16 PM
How about the resize event?
http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.grid.GridPanel-event-resize

shanksencha
22 May 2015, 8:32 AM
Yes, currently the action-to-be-formed on RESIZE Event.

The catch here is action triggers if the browser is resized too . When a browser is resized the grid automatically adjusts itself to the browser.

I want to perform an action only when the user holds the drag icon of the grid (available on the corners , left and bottom) and resizes.
I dont see an handler for the corners of the grid.

Holds the drag icon , drags to the new size , mouse out.

trigger an action only if the grid is resized by the user. This is what I am looking for.