I found a bug with something in Flex2…where do these kind of things need to be reported? The problem…

Well, I figured out the problem with my cellRenderer moving about. Let’s say I have 4 grid columns, with the third one having a cellRenderer function. Now with actionscript, I do a hide on the third column:

 

myDataGrid.getColumnAt(2).visible = false;

 

I’d assume it would hide the column with the cellRenderer, which it does – but the cellRenderer moves to the 4th column! Unhiding the column with a visible = true returns everything back to normal.

The code for this is real simple. Have a cellRenderer on the 3rd column of a Datagrid with 4 columns, by doing
<mx:DataGridColumn cellRenderer="{DistanceRenderer}" etc>. Then make a button to hide the 3rd column and you’ll see the Renderer attempt to render your 4th column.

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to