Bugger.  This should have been...
 

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">

<mx:Script>

function setColumnSizes():Void

{

datagrid.getColumnAt(0).__width = datagrid.width * 25 / 100;

datagrid.getColumnAt(1).__width = datagrid.width * 50 / 100;

datagrid.getColumnAt(2).__width = datagrid.width * 25 / 100;

datagrid.getColumnAt(0).resizable = false;

datagrid.getColumnAt(1).resizable = false;

datagrid.getColumnAt(2).resizable = false;

doLater(this, "resizableTrue");

}

function resizableTrue():Void {

datagrid.getColumnAt(0).resizable = true;

datagrid.getColumnAt(1).resizable = true;

datagrid.getColumnAt(2).resizable = true;

}

</mx:Script>

<mx:DataGrid id="datagrid" width="100%" resize="setColumnSizes()">

<mx:columns>

<mx:Array>

<mx:DataGridColumn headerText="25%" width="{datagrid.width * .25}"/>

<mx:DataGridColumn headerText="50%" width="{datagrid.width * .25}"/>

<mx:DataGridColumn headerText="25%" width="{datagrid.width * .25}"/>

</mx:Array>

</mx:columns>

</mx:DataGrid>

</mx:Application>

-----Original Message-----
From: Paul Frantz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 13 April 2005 15:26
To: '[email protected]'
Subject: RE: [flexcoders] DataGrid column resizing

To solve my own issue (at least after testing so far)... 
 
<SNIP/>


~~-------
This e-mail may contain confidential information. If you are not the intended recipient, please notify the sender immediately and delete this e-mail from your system. You must not disclose this e-mail to anyone without express permission from the sender. The contents of all e-mails sent to and received from Optus may be scanned, stored, or disclosed to others at Optus discretion.

Optus has exercised care to avoid errors in the information contained in this e-mail but does not warrant that the information is error or omission free. The information (including any pricing information) contained in this e-mail is subject to change. This e-mail is not a quotation or proposal and no contractual obligations arise until you and Optus sign a formal written contract or formal variation to your existing contract.

Any pricing contained in this e-mail is exclusive of GST unless otherwise stated.
********************************************************************


Yahoo! Groups Links

Reply via email to