Link to home
Start Free TrialLog in
Avatar of Jay Roy
Jay RoyFlag for United States of America

asked on

display data in multiple rows

hi guys

I am using <mx:HorizontalList> to display id's  from a list. this is my code


<mx:HorizontalList width="848" height="54" dataProvider="{myData.myList}"  columnWidth="150" borderStyle="none" cornerRadius="15" >
<mx:itemRenderer >					
<mx:Component>	
					 
<mx:HBox height="100%" verticalAlign="middle" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:HBox verticalAlign="middle" horizontalAlign="right" >  
<mx:LinkButton id="projectName" label="{data.id}" /> -- The problem is here when displaying the id
</mx:HBox>											
</mx:HBox>

</mx:Component>					 
</mx:itemRenderer>
</mx:HorizontalList>

Open in new window


Whenever myData.myList contains a large number of items,  <mx:LinkButton id="projectName" label="{data.id}" />  overflows and i see a horizontal scroll bar.

I do not want a scrollbar , instead i want to move over to the second row.

for example if myData.myList has 10 items, i want to show the first 6 ids in the first row and the next 4 ids in second row instead of showing all 10 ids in one row with a scrollbar.

any idea how i can acchieve this?

thanks.
ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jay Roy

ASKER

repeater puts a vertical scroll bar but i was thinking there is no way to avoid a scroll bar, it either has to be vertical or horizontal,  so dont think there is a solution to this problem.
 thanks for the answer.
can you please help with this question

https://www.experts-exchange.com/questions/26919455/minimize-and-maximize-mx-RichTextEditor.html

thanks