Its common to use the change event with List controls such as the DataGrid. This event does not get fired when clicking the header.
Doug's coverflow stuff is wicked kewl, eh? Slick to use a viewstack. Only thing I don't like is its tied to a Panel, but I'm sure that's changeable. Fro those that have not seen it check out this URL: http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/ watch that wrap! Doug will be speaking at 360Flex in Atlanta too, be sure to check him out. DK On Dec 6, 2007 3:48 PM, <[EMAIL PROTECTED]> wrote: > Still somewhat new to flex, but found a good solution to working with > datagrids. > Most probably already know this, but I also know there are several out > there that are just getting into flex and thought this may help if you run > into this situation. > > Flex 2.0 plugin on Eclipse 3.2 > Converting an existing CF reporting app to Flex. > > Layout: > 1 to x panels via Doug McCunes "CoverFlow" (very cool Doug thanks) > This is like the album cover flow in ITunes. > Panel 1 (initial panel) has a start date, end date and button. > Populates panel 1's datagrid. > Each datagrid's result set has to be sortable and row click to next panel. > When selected row is clicked a click event fires to populate the next > panels datadrid and also fires the transition to move to the next panel. > > Initial issue: > on panel 1 sorting works. > Clicking on selected row worked and moved to next panel. > Going back to panel 1 we can still click on row and fire event, but > clicking on headers to sort fired off the event again passing the wrong > parameters to the next panel. > > I was sending in a mouse event on the click handler of the datagrid since > that made since to me to fire it on the mouse click. (wrong) > > First try was to test for the selected index to make sure it wasn't on > the header. > After several failed attempts I realized I needed to test the row index > which isn't available in the mouse event. > > The solution was to a List event from the itemClick in the datagrid. > This allowed me to test the row index in the click handler with a simple > "if statement" and solve this issue. > > RL > > > ------------------------------------------------------------- > To unsubscribe from this list, simply email the list with unsubscribe in > the subject line > > For more info, see http://www.affug.com > Archive @ http://www.mail-archive.com/discussion%40affug.com/ > List hosted by http://www.fusionlink.com > ------------------------------------------------------------- > > > -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
