Yes, you'd have to extend DataGrid and override the mouseDownHandler and
mouseUpHandler functions.  if ( event.target is Button ) return;

-TH

--- In [email protected], Dennis Falling <dfall...@...> wrote:
>
> That's what I was trying- stopping propagation and preventing default.
> Apparently the datagrid gets the event first.
>
> On Wed, Feb 4, 2009 at 10:26 PM, arieljake arielj...@... wrote:
>
> > Can you have the items catch the click event of the button and
prevent
> > propagation?
> >
> >
> > --- In [email protected] <flexcoders%40yahoogroups.com>,
Dennis
> > Falling dfalling@ wrote:
> > >
> > > I'm using a DataGrid. But the problem is that I want the selection
> > behavior
> > > to behave normally, except for when the buttons are clicked.
> > > Thanks
> > >
> > > On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos <
> > > fotis.chatzinikos@ wrote:
> > >
> > > > if you are using a list or tile list there is a property
selectable
> > > > which you can make false.
> > > >
> > > >
> > > >
> > > > On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfalling@ wrote:
> > > >
> > > >> Is there one involving item renderers? I believe I scoured
> > your site
> > > >> pretty thoroughly, but the only time I see selection behavior
being
> > > >> overriden is inside an extended list or DataGrid. Is it
possible
> > to pull
> > > >> this off with only an item renderer?
> > > >>
> > > >> Thanks
> > > >>
> > > >> On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aharui@ wrote:
> > > >>
> > > >>> There a example on preventing list selection on my blog
> > > >>>
> > > >>>
> > > >>>
> > > >>> *From:* [email protected]
<flexcoders%40yahoogroups.com>
> > [mailto:[email protected] <flexcoders%40yahoogroups.com>]
*On
> > > >>> Behalf Of *Dennis Falling
> > > >>> *Sent:* Tuesday, February 03, 2009 5:30 PM
> > > >>> *To:* [email protected]
<flexcoders%40yahoogroups.com>
> > > >>> *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click
from
> > > >>> selecting row?
> > > >>>
> > > >>>
> > > >>>
> > > >>> That would work for invalidating my selection, but I simply
want the
> > > >>> selection to never occur. That way if something was previously
> > selected, it
> > > >>> isn't altered.
> > > >>>
> > > >>> On Tue, Feb 3, 2009 at 5:08 PM, fourctv fourctv@ wrote:
> > > >>>
> > > >>> have you tried datagrid.selectedItems=null?
> > > >>>
> > > >>>
> > > >>>
> > > >>> --- In [email protected]
<flexcoders%40yahoogroups.com>
> > <flexcoders%40yahoogroups.com>, Dennis
> > > >>> Falling <dfalling@> wrote:
> > > >>> >
> > > >>> > I have an ItemRenderer with buttons in it. In the click
listener
> > > >>> functions
> > > >>> > for these buttons, I call event.stopImmediatePropagation
(and
> > > >>> > preventDefault, though that doesn't seem relevant), but the
row is
> > > >>> still
> > > >>> > selected. How can I prevent it from receiving the click and
> > > >>> highlighting
> > > >>> > itself?
> > > >>> > Thanks.
> > > >>> >
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > > >
> > > >
> > > > --
> > > > Fotis Chatzinikos, Ph.D.
> > > > Founder,
> > > > Phinnovation
> > > > Fotis.Chatzinikos@,
> > > >
> > > >
> > > >
> > >
> >
> >
> >
>



Reply via email to