[flexcoders] Re: maxWidth property not working on Advanced DataGrid

2009-04-23 Thread labosox
I placed the height at 80 so that I could force a vertical scroll bar. That way 
I didnt have to add more data to turn on the vertical scroll bar.

basically I need a grid to resize its entire width on a column resize event. 
When the grid's width is too large to fit in a panel, I want the grids 
horizontal scroll bar to come on. The code below doesnt work if a vertical 
scroll bar is present. 

Let me know if the scenario doesnt make sense.


--- In flexcoders@yahoogroups.com, Marco Catunda  wrote:
>
> I didn't understand very well, but If you remove height="80" property
> in below line,
> the vertical scroll bar go away.
> 
>  horizontalCenter="0" dataProvider="{arr}"
> horizontalScrollPolicy="auto" >
> 
> --
> Marco Catunda
> 
> 
> On Wed, Apr 22, 2009 at 8:52 AM, labosox  wrote:
> >
> >
> > Hello,
> >
> > I am trying to create a grid that will update its size on a column resize
> > event. I want the grid to keep getting large until they hit a max width then
> > turn on a horizontal scroll bar.
> >
> > Everything seems to work fine unless I have a vertical scroll bar present in
> > the grid. When I try to re-size a column the datagrid adds a horizontal
> > scroll bar automatically.
> >
> > Heres my code:
> >
> > http://www.adobe.com/2006/mxml"; layout="absolute"
> > creationComplete="initApp()" viewSourceURL="srcview/index.html">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  > horizontalCenter="0"
> > verticalCenter="-65" id="stuff" verticalScrollPolicy="off"
> > horizontalScrollPolicy="off">
> >  > dataProvider="{arr}"
> > horizontalScrollPolicy="auto" >
> > 
> > 
> >  > dataField="quanity"/>
> > 
> > 
> > 
> > 
> >
> > 
> >
> >
>




[flexcoders] maxWidth property not working on Advanced DataGrid

2009-04-22 Thread labosox
Hello,

I am trying to create a grid that will update its size on a column resize 
event. I want the grid to keep getting large until they hit a max width then 
turn on a horizontal scroll bar. 

Everything seems to work fine unless I have a vertical scroll bar present in 
the grid. When I try to re-size a column the datagrid adds a horizontal scroll 
bar automatically. 

Heres my code:

http://www.adobe.com/2006/mxml"; layout="absolute"
 creationComplete="initApp()" viewSourceURL="srcview/index.html">

















   




[flexcoders] Re: Link/Hand Cursor

2009-04-16 Thread labosox
--- In flexcoders@yahoogroups.com, "byte.sensei"  wrote:
>
> Flex seems to be sporadic at changing the cursor to a link/hand cursor when 
> rolled over components that allow clicks/linking. I can't find any properties 
> that make it easy to change the cursor on roll-over of an image that is a 
> link, for example.
> 
> I don't need custom cursors or anything, I'm just interested in changing the 
> default cursor into a hand/link cursor when the mouse is over a particular UI 
> component. What's the best way to accomplish this?
>

I used something like this:

_cellLabel.useHandCursor = false;
_cellLabel.buttonMode = false;
_cellLabel.mouseChildren = true;



[flexcoders] Datagrids last column is auto resized

2009-04-16 Thread labosox
Hello Everyone,

Ive notice that if you have a simple advanced datagrid 
with horizontal scroll policy set to on the last column 
is always auto-resized. If you expand your columns
 so that the horizontal scroll bar comes on the 
last column when scroll is auto-sized.

Does anyone know how to turn this off?

Thanks



[flexcoders] AdvancedDataGridRendererProvider Scrolling issue

2009-04-16 Thread labosox
Hello,

I was wondering if anyone else has come across this issue.

What I am trying to do is to create a Advanced Datagrid that has various column 
spans that vary for each row. I was able to get this to work by using the 
AdvancedDataGridRendererProvider. I am running into a couple of problems 
though. 

For my project we are suppose to have a grid that can expand and become larger 
when the user stretches a column. When the grid gets to be a certain size, we 
need to turn on horizontal scrolling and continue to allow the user to change 
the columns sizes. The AdvancedDataGridRendererProvider spans all columns and 
has worked perfectly up to the point when the horizontal scroll bar is enabled. 
If you scroll over to see the columns that are no longer visible the 
AdvancedDataGridRendererProvider is no longer "spanned" across the columns. Do 
I need to do something special with this itemrenderer to allow it to span 
across the scrolled area?

I am not doing anything fancy with the AdvancedDataGridRendererProvider. I have 
a code example and can post that if needed. 

Please let me know if anyone has any ideas.



[flexcoders] Re: Link/Hand Cursor

2009-04-16 Thread labosox
--- In flexcoders@yahoogroups.com, Fotis Chatzinikos  
wrote:
>
> useHandCursor="true" buttonMode="true"
> 
> On Thu, Apr 16, 2009 at 5:03 PM, byte.sensei  wrote:
> 
> >
> >
> > Flex seems to be sporadic at changing the cursor to a link/hand cursor when
> > rolled over components that allow clicks/linking. I can't find any
> > properties that make it easy to change the cursor on roll-over of an image
> > that is a link, for example.
> >
> > I don't need custom cursors or anything, I'm just interested in changing
> > the default cursor into a hand/link cursor when the mouse is over a
> > particular UI component. What's the best way to accomplish this?
> >
> >  
> >
> 
> 
> 
> -- 
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> fotis.chatzini...@...,
>

I used something like this:

_cellLabel.useHandCursor = false;
_cellLabel.buttonMode = false;
_cellLabel.mouseChildren = true;