Adobe Dreamweaver Forums



Last 10 THreads :         static sound (Last Post : kglad - Replies : 11 - Views : 12 )           »          Code that can effect two movie clips (Last Post : Alessandroy - Replies : 2 - Views : 3 )           »          load xml into mc symbols (Last Post : kglad - Replies : 1 - Views : 2 )           »          Adobe Flash 10 kills Wimpy (Last Post : midiwriter - Replies : 83 - Views : 955 )           »          Create 2nd animation in same flash file (Last Post : dabooj - Replies : 0 - Views : 1 )           »          Local host and php Solutions help... (Last Post : RJweb - Replies : 1 - Views : 6 )           »          problems linking PDFs (Last Post : Alan - Replies : 3 - Views : 4 )           »          Flash movie not working in html (Last Post : WEBDavid - Replies : 0 - Views : 1 )           »          drop down menu over flash (Last Post : ltartisel - Replies : 2 - Views : 3 )           »          Flash-PHP Mail Form (Last Post : kglad - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 12-03-2008, 09:53 PM
Abobo
 
Posts: n/a
Diggs:
Default Adding scrollbars to a datagrid - Should be simple

Flex 3.

I would have thought this would simply be an option.

After looking around I have added:
horizontalScrollPolicy="auto"

My code looks like this:

<mx:Canvas x="501" y="0" width="288" height="516" backgroundColor="#E8EEF7">
<mx:TextInput x="10" y="11" width="268" id="sd_channel_filter"/>
<mxataGrid id="dg_channels" x="10" y="41" width="268" height="465"
dataProvider="{channelListFilteredXML.CItem}"
headerRelease="{headerColor(event)}"
horizontalScrollPolicy="auto"
dragEnabled="true"
itemClick="onItemClick(event)"
>

<mx:columns>
<mxataGridColumn headerStyleName="title" width="100"
headerText="CHANNELS" dataField="@Name"/>
</mx:columns>
</mxataGrid>
</mx:Canvas>

The problem is this.
The canvas has 1 TextInput (to filter the datagrid) and the datagrid.

The datagrid has only 1 column which is populated by an HTTPService request.

The data in the column is much wider than what is available in the canvas.
I want a scrollbar to magically appear when the data is added.
If I set:
horizontalScrollPolicy="on"

The scrollbar is there, but it is disabled. Which I think tells me it doesn't
need to scroll (i.e. the contents fit the displayable space), but you can
clearly see the data is cut off and can't read the rest.

All my googling found conditions to get rid of scrollbars, not much to add
them.

Any suggestions?

Thanks,
Dave




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-05-2008, 02:53 PM
Abobo
 
Posts: n/a
Diggs:
Default Re: Adding scrollbars to a datagrid - Should be simple

Any suggestions on this one?
Was I right and it should have been that simple?
Does it have something to do with the width of the columns?

TIA,
Dave

Reply With Quote
  #3 (permalink)  
Old 12-05-2008, 03:43 PM
Ansury
 
Posts: n/a
Diggs:
Default Re: Adding scrollbars to a datagrid - Should be simple

Have you tried putting the datagrid into another canvas and letting the canvas do the scrolling? Not sure if this would work, but I'm not surprised that datagrid isn't happy doing this itself.
Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk