Results 1 to 4 of 4

Thread: Click in one grid row causes row in other grid to select

  1. #1

    Default Click in one grid row causes row in other grid to select

    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?

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    then you need to stop the click event propagation.

  3. #3

    Default

    How would I do that?

  4. #4
    Sencha User
    Join Date
    Sep 2008
    Posts
    21

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •