OK. This works -> <datagrid width="{this.width-20}"> This doesn't -> <datagrid width="{vbox.width}">
I get an error: Error #1010: A term is undefined and has no properties. at mx.controls::DataGrid/::calculateColumnSizes() at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() Any ideas?? this.width - 20 is equal to the vbox width. Just not sure why it doesn't work. --- In flexcoders@yahoogroups.com, "michael_ramirez44" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "phipzkillah" <pkrasko@> wrote: > > > > Setting the horizontal scroll policy to auto produces 2 scroll bars. > > My datagrid is in a vbox (width=100% to fill the panel). My > > datagrid's width is 100% to fill the vbox. > > > > When you set horizontal scroll policy to auto it creates a huge > > datagrid that will no longer fit into the vbox. So now I get a > scroll > > bar on the vbox. To use the vertical scroll bar on the datagrid I > > need to scroll the vbox horizontal scroll bar all the way to the > right. > > > > Still no fix for this problem. Any thoughts. > > > > > > This is an image with the VBOX width = 100%, with the datagrid > inside > > with a width=100%; the horizontal scroll policy is set to auto on > the > > datagrid. > > > > > > > > --- In flexcoders@yahoogroups.com, "michael_ramirez44" > > <michael_ramirez44@> wrote: > > > > > > --- In flexcoders@yahoogroups.com, "phipzkillah" pkrasko@ wrote: > > > > > > > > > > > > I have a Datagrid in a panel whose size is 80% width of the > screen > > > > (panel width that is). My datagrid has 68 columns and its > width is > > > set > > > > to 100% (to fill the panel). When the datagrid loads you can't > > > read a > > > > damn thing. If i set the minwidth I can read the data, but I > have > > > to > > > > horizontally scroll all the way to the right to see the vertical > > > scroll > > > > bar!! SO I can't scroll down unless I scroll all the way to the > > > > right...how is that user friendly? Seems like a poor design > that > > > the > > > > datagrid scroll bar doesn't float ontop of the grid itself. You > > > can see > > > > the problem here in a snapshot I took - vertical scroll bar not > seen > > > > unless you scroll all the way to the right. > > > > > > > > Does anyone have a solution to this problem? I don't want any > > > scroll > > > > bars on my panel. I simply just want to be able to scroll > > > horizontally > > > > and vertically on my datagrid with ease. > > > > > > > > > > Set the DataGrid's horizontalScrollPolicy to "auto". > > > > > > dgResults.horizontalScrollPolicy = "auto"; > > > > > > Try binding your VBOX width to your dataGrid. > > <mx:DataGrid width="{myVbox.width}"/> > > Its worth a shot :) >