PDA

View Full Version : event order



ck4ExtJS
1 Apr 2011, 5:21 AM
Hi,

I have a problem when using a form and a grid. Im my form there is a text field with attached 'change' listener. If the data in the text field is changed i wan't to prevent the grid to select a new row.

But if I change the row selection, the 'rowselect' event is fired before the 'change' event of the the field.

I can not use a store which is attached to both (grid and form).

Does anyone have an idea?

Thanks a lot.

mankz
3 Apr 2011, 3:04 AM
Try using beforerowselect instead?

ck4ExtJS
3 Apr 2011, 10:55 PM
Thanks - this should be it. We did it using the buffer option when registering the listener. Now the change event comes before rowselect. Also you can navigate in grid without changing the form all the time...

Thanks