PDA

View Full Version : Click in one grid row causes row in other grid to select



dbassett74
21 Aug 2009, 7:05 AM
I am doing something a bit custom with the RowExpander pluggin for the grid. I am attempting to embed another grid when the expander is clicked. So far, it works great, I have been able to accomplish this based on the example provided here: http://extjs.com/forum/showthread.php?t=76507

However, one side affect seems to be that any action that occurs on the embedded grid (like mouse over, row click, etc), seems to propogate itself to the parent grid as well. In other words, when I click on say the third row in the embedded grid, it also shows that the third row in the parent grid was clicked as well.

I find this a bit strange. Is there anyway in this situation to enforce the action on the embedded grid to stay within that grid and not propagate itself to the parent grid?

23 Aug 2009, 1:13 PM
then you need to stop the click event propagation.

dbassett74
23 Aug 2009, 1:46 PM
How would I do that?

madamut
24 Aug 2009, 5:22 AM
I'm not 100% sure this would work but you could try to override the processEvent method from GridPanel to add a call to the stopPropagation() method on the EventObject.