zhaoshixuan
7 Feb 2012, 1:37 AM
31427
Dears,
I saw a good plugin from http://www.sencha.com/forum/showthread.php?87555-Nested-Grids-with-RowExpander-in-ExtJS-3.0.
It is great and I used it in my work.
But when I select record in the nested grid, the outer grid's record with the same rowIndex will be selected too.
You can see this situation on the pic.
When I use editor grid instead of grid panel, an error will happen after I click the first column of the nested grid.
And some event will be also fired before any click event is fired.
In the event, the outer cell will be selected and its column index will reduce 1. So, it the first column of nested grid is selected, the outer column index will be -1 and error happens.
I tested many times and found no clues about the mysterious event.
Could any one explain it?
I'm always confused by the event's sequence.
Beg your help:)
PS: I work in ExtJS 3.3
I found 'mousedown' event is the first fired event.
After the nested grid, the outer grid will fire this event too. Then it tries to focus the wrong cell.
How to prevent the outer grid event?
Dears,
I saw a good plugin from http://www.sencha.com/forum/showthread.php?87555-Nested-Grids-with-RowExpander-in-ExtJS-3.0.
It is great and I used it in my work.
But when I select record in the nested grid, the outer grid's record with the same rowIndex will be selected too.
You can see this situation on the pic.
When I use editor grid instead of grid panel, an error will happen after I click the first column of the nested grid.
And some event will be also fired before any click event is fired.
In the event, the outer cell will be selected and its column index will reduce 1. So, it the first column of nested grid is selected, the outer column index will be -1 and error happens.
I tested many times and found no clues about the mysterious event.
Could any one explain it?
I'm always confused by the event's sequence.
Beg your help:)
PS: I work in ExtJS 3.3
I found 'mousedown' event is the first fired event.
After the nested grid, the outer grid will fire this event too. Then it tries to focus the wrong cell.
How to prevent the outer grid event?