Beau + Alex!

Thank you!

I've used event.stopPropagation();     //This is exactly what I needed!


Chers,
Nick



2009/9/1 Nick Middleweek <n...@middleweek.co.uk>

> Hello,
>
> I've got an advancedDataGrid (AvDG) and the first column has an item
> renderer which has a button on it. The button has a click handler.
>
> There is also a itemDoubleClick handler on the AvDG.
>
> Users are double-clicking the button so this is firing the click of the
> button handler but the doubleClick event is also being fired on the AvDG row
> item.
>
> I'm guessing this is related to event bubbling or capturing?
>
> I'm trying to stop the AvDG.row doubleClick event being fired if the user
> double clicks on the button.
>
> Anyone got any ideas? I've tried to put a doubleClick on the button in hope
> that it would handle it and therefore stop the row event from being fired
> but ti didn't work.
>
>
> Now I think i need to capture the doubleClick cancel event in the button
> object and prevent it from bubbling from the button to the AvDG. Where do I
> set event.cancelable = true?
>
>
> Thanks,
> Nick
>
>

Reply via email to