I could not reproduce it today..But I remember It was happening on column drag. 
However, Please let me know the workaround so that I can avoid possibility of 
this unexpected issue behavior.

I wanted to remove all deadsapce as it causes annoying effect but from ur 
message It looks like it is not possible. By any chance If you/ anyone happen 
to resolve this issue ,Please share the same in group.


--- In [email protected], Alex Harui <aha...@...> wrote:
>
> When did the swap happen?  At startup?  During a drag of columns or  a sort?  
> We'd need to know the cause to know how to prevent it.
> 
> The datagrid cannot handle having a dead zone at the far right.  It will 
> always stretch the last column.  Just to confirm, you have 
> horizontalScrollPolicy="on"?
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of Dharmendra Chauhan
> Sent: Sunday, April 26, 2009 10:28 PM
> To: [email protected]
> Subject: [flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to 
> Last Colum
> 
> 
> 
> 
> 
> It swapped the order of the columns?
> yes , Sometimes blank column swpped with other column.It should not happen
> 1) Is there is a way to prevent this swapping ?
> 2) Is it possible to get rid of extra space at all without adding blank 
> column ?
> As per my understing the purpose of this blank column is to absorb extra 
> space and that is why you want it to be resizable = true.
> 
> Regards,
> Dharmendra
> 
> 
> --- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Alex 
> Harui <aharui@> wrote:
> >
> > It swapped the order of the columns? That would be unexpected. The last 
> > column should not have resizable=false. It's job is to be resizable and 
> > take up the extra space not needed by the other columns.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.<http://www.adobe.com/>
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: [email protected]<mailto:flexcoders%40yahoogroups.com> 
> > [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On 
> > Behalf Of Dharmendra Chauhan
> > Sent: Sunday, April 26, 2009 2:29 AM
> > To: [email protected]<mailto:flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation 
> > to Last Colum
> >
> >
> >
> >
> >
> > Hi Alex,
> > Thanks for the quick reply.
> >
> > I followed the approach suggested by you. But Now It still keeps allocating 
> > extra space to the last column.However Now the last column has been 
> > changed. It is the one which is without header having lableFunction 
> > returning "" string .
> >
> > Pls see below column configuration :-
> >
> > <mx:columns>
> > <mx:DataGridColumn width="100" taField="Artist" />
> > <mx:DataGridColumn width="100" dataField="Album"/>
> > <mx:DataGridColumn width="100" dataField="Price"/>
> > <mx:DataGridColumn width="100" dataField="InStock" <mx:DataGridColumn 
> > resizable="false" headerText="" labelFunction="emptyValueLabelFunction"/>
> > </mx:columns>
> >
> > Thanks,
> > - Dharmendra
> >
> > --- In 
> > [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>,
> >  Alex Harui <aharui@> wrote:
> > >
> > > Add one more column with headerText="" and labelFunction that returns ""
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.<http://www.adobe.com/>
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > > From: 
> > > [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>
> > >  
> > > [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>]
> > >  On Behalf Of Dharmendra Chauhan
> > > Sent: Saturday, April 25, 2009 1:45 PM
> > > To: 
> > > [email protected]<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>
> > > Subject: [flexcoders] DataGrid: How to Prevent Extra Space Allocation to 
> > > Last Colum
> > >
> > >
> > >
> > >
> > >
> > > Hi All,
> > > Please help me to get rid of extra space being allocated to the last 
> > > column of DataGrid.
> > > Where does this extra come from ? whatever column I resize should 
> > > actually be resized.Why does one column resize led to last column resize ?
> > >
> > > I have set horizontal policy to auto and resizable = true for all 
> > > column.Also I cant make resizable = false for last column as It is not 
> > > acceptable to my client
> > >
> > > Any help would be appreciated.
> > >
> >
>


Reply via email to