You could try programmatically removing the column and then adding it back in when you needed it using the removeColumnAt()/addColumnAt() methods? Just keep a reference to the removed column for when you need to add it back in later.

 

-deepa

 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda
Sent:
Tuesday, January 24, 2006 8:31 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Bugs with Flex2

 

Tried that, it won’t shrink below the data size in the actual column. Is there a way to force it to go to width 0, or another way to hide it besides visible=false?

 

 

_________________________________________

Jonathan Miranda

Flexible Master of the Web

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

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Philippe Maegerman
Sent: Tuesday, January 24, 2006 1:15 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Bugs with Flex2

 

maybe you can try to set the column width to 0 instead of hiding it.

 

Philippe

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda
Sent: lundi 23 janvier 2006 19:58
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Bugs with Flex2

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




------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------

Reply via email to