I think you should investigate the itemEditEnd event; it seems to be
the proper solution rather than the "change" events you've mentioned.

> Finally, if I wanted to forego the itemClick route...
Not sure why you'd do that. itemClick is definitely the appropriate
event, and handling that event is a completely logical way of changing
the behavior.

HTH,
Ben


--- In [email protected], "Mike Anderson" <[EMAIL PROTECTED]> wrote:
>
> Oh Lord, it's that easy???
> 
> I was looking for something a bit more elaborate - and I must say, I
> would have NEVER thought of using -1 as my DataGrid index value.  Is
> this a standard programming solution, in cases such as this???
> 
> Also, if a Row is selected & flagged as "editable" per my custom code
> (after the user clicks my "edit record" button), if the user clicks
> anywhere else on the DataGrid (which causes my itemClick function to set
> the DataGrid index to -1), will this cause a "change" event to get
> broadcast??  I am just curious, since -1 falls outside the bounds of the
> "zero-based" Array.  And that question brings me to my next point, if
> the DataGrid does get set to -1, is it safe to say that when the user
> clicks in the "editable" Row, that a "change" event will get broadcast?
> 
> Finally, if I wanted to forego the itemClick route and extend the
> DataGrid, and write an override function to halt the actual highlight of
> the Row, which function would that be, and which class file would that
> reside in?
> 
> Thanks for your reply, and any additional information you can provide
> regarding this.
> 
> Mike 
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of ben.clinkinbeard
> Sent: Wednesday, December 13, 2006 7:54 AM
> To: [email protected]
> Subject: [flexcoders] Re: Need help intercepting a specific event for
> DataGrid
> 
> You are correct, itemClick is the event you need to handle. In your
> handler method simply perform your logic, and if the row should not be
> selected use dg.selectedIndex = -1.
> 
> HTH,
> Ben
> 
> 
> --- In [email protected], "Mike Anderson" <mike@> wrote:
> >
> > Hello All,
> > 
> > I am trying to figure out how to intercept the event that gets 
> > broadcasted, *just before* the DataGrid accepts a Mouse-Click, which 
> > in-turn, highlights a Row.
> > 
> > I've done things like "override functions" in the past, to accomplish 
> > similar goals of modifying built-in behaviors, but in this particular 
> > case, I am pretty sure I need to intercept an event.  I've never done 
> > anything quite like this before, so any help will be VERY appreciated.
> > 
> > If I read the docs correctly, I need to intercept the "itemClick
> event"
> > - which belongs to the ListBase Class, that the DataGrid inherits.
> > 
> > Before getting bogged down with all the criteria which will dictate 
> > whether the Grid should accept itemClick events, I really need to find
> 
> > how to do the hard-core basics first.
> > 
> > Hopefully this post is easier to read, and generates a better response
> 
> > than the original.
> > 
> > Thanks everyone!!
> > 
> > Mike
> >
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>


Reply via email to