Flex :: ViewStack With A Repeater - Repeater Gets Placed At The Bottom?

Sep 2, 2010

I have a problem when creating a ViewStack, with a repeater along with other components (i.e. vBox) inside the ViewStack. The repeaters get placed at the bottom of the view. Despite the repeater is listed before other components, it is placed at the bottom.Is there a workaround where I can get the repeater drawn before the other components?Here is an example:

<mx:ViewStack id="viewStack" width="100%" height="100%" backgroundColor="#FFFFFF"
backgroundAlpha="1" paddingLeft="5" paddingRight="5" paddingBottom="5">
<mx:Repeater id="editorsRP" dataProvider="{dynamicFields}" [code].....

View 2 Replies


Similar Posts:


Flex :: Dispatching Custom Event From Repeater Component And Listen Event In Other Repeater Components

May 4, 2011

I have a repeater component with custom event. My repeater components fires custom event holding data. My need is to dispatch event so other repeater components can access data from dispatching component.

Edit: Added whole stuff here.

<!-- AttributeMapping.mxml -->
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"

[Code].....

View 1 Replies

Flex :: Change Label In Repeater?

Nov 21, 2009

In actionscript, when I click a button I would like the label to replace from "add to list" to "added" without override with super method.

Is this even possible to change label in repeater?

View 1 Replies

Flex :: Get Text From A Repeater Object?

Mar 3, 2010

I have a label that is using a repeater to get information form a database. Now I'm trying to pass the information in that label to another label component, but I haven't had any luck.[code]...

View 1 Replies

Flex :: Modify The Vertical Gap In A Repeater?

Jul 2, 2010

I Have a VBox, and set the verticleGap = 0. Inside the VBox I have a Repeater. When I run the App, the items listed from the Repeater have a large gap between each line. Is there a way to set the verticleGap on the Repeater, or reduce that space?

View 1 Replies

Flex 3 - Conditional Statements For A Repeater

Jul 12, 2011

I have an xml file that has a start date and length of a project... I use a repeater to load each project. The users' screen only shows 2 weeks at a time. I would like to make it so that if a project doesn't fall within the two weeks on screen, that the project isn't loaded. I could do this by sorting through the XML and finding the correct projects to load, and putting them into an array collection, but there's a "move date" button which allows the user to change the two weeks that are showed. Once the two weeks are changed, I would need the projects that fit into that new 2 week window to show.

[Code]...

View 1 Replies

Flex :: Use Repeater For Components Inside Swc?

Nov 4, 2011

I build a swc file by Flash CS5 contains some interface component like TextInput, Label.And then I use it in a flex program.

But I meet the problem when I want use flex repeater for this component.

Following is the a component defined by myself in swc file using Flash CS.[code]...

View 1 Replies

Flex :: Repeater Component With Grid Layout?

Aug 3, 2009

I have a randomly-sized array of items. I'd like to display one label for each item in a Repeater component. I want them to display in a grid layout with 5 columns and as many rows as needed. How do I do that in Flex / ActionScript?

View 2 Replies

Flex :: Checkbox Visibility Binding In Repeater?

Nov 20, 2009

I am trying to dynamically bind the visibility of a checkbox control to a data field of a repeater as follows.

[Code]...

View 1 Replies

Flex :: Repeater With Dataprovider Flickers A Bit When There Is An Update

Dec 16, 2009

i have the following code:
<mx:Repeater id="user" dataProvider="{data}">
<mx:VBox styleName="repeaterVBox">
<mx:Text text="{user.currentItem.a}. {user.currentItem.b}"

[Code]....

the dataProvider 'data' updated itself every 3 seconds, so every 3 seconds that is a flicker of some sort, i see for a really short time an empty area and then it gets redrawn again. is there a way to make the update somewhat faster ?

View 1 Replies

XML :: Flex 3 - Using Repeater And Sending XML Information To Component

Apr 26, 2011

I trying to import an XML file, and send bits and pieces to a custom component. My XML file is structured like this:

<projects><project>
<projName>{Insert title of project here}</projName>
<startDate>{Insert date here}</startDate>
<positions>
<daysOffset>{Insert a number here}</daysOffset>
[Code] .....

When I save the project, I do not get any errors or warnings. However, when I attempt to output the values in the component, the projectPositions piece comes back as Null.

View 1 Replies

Flex 3 :: Refreshing Repeater After Adding A Child

May 23, 2011

Within a child, I have an XML element with the following structure:[code]I then use a repeater to list each out onto the screen. There's a button I have created that is used to create a position. So, once the user clicks this button, I call the following function:[code]The above function creates a new XML object, puts some default values in, and appends it to the list of project positions. After appending the new information, I made the height of the project larger and then check to make sure the new project height isn't overlapping any other projects... but that information is irrelevant to this post.My problem is this - once i append a new child to the XML variable, it doesn't appear on the screen. Is there a "refresh" or "re-render" option i can do to the repeater in order to make the new child show?[code]Once i make the changes, and use the XMLListCollection as the dataprovider in the repeater, the information no longer loads on the screen.

View 1 Replies

Flex :: Limit The Number Of Items In The Repeater Object?

May 19, 2010

I'm using a Repeater object in Flex. Would be possible to stop the repeater after 50 iterations.. even if my dataProvider is bigger ?

I want to display only the first 50 items. I'm using MXML to implement the repeater.

View 1 Replies

Flex :: Delay Repeater Until Rest Of View Has Loaded?

May 30, 2010

I have a flex repeater for an accordion inside a TitleWindow that is quite slow, I've already set recycleChildren to true, which has helped, but it's still slow on the first load and causes the animation to stutter when I open the TitleWindow.

The repeater is just one part of what's visible in the TitleWindow, what I would like to do is have the repeater load after the rest of the content in the TitleWindow so the animation of the TitleWindow being opened doesn't stutter (the main problem).

View 1 Replies

Flex :: Components Inside A Repeater Not Resizing As Expected?

Jun 3, 2010

I have an mxml panel in which I'm using a repeater. The panel can be resized horizontally and I would like for the repeated components to resize together with panel. Here is a simplified example of how things look like:

<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" ...>
<!-- scripts and some controls -->
<mx:VBox width="100%">

[code].....

View 2 Replies

Flex :: Ensure An Item Gets Deleted Inside Repeater?

Aug 4, 2010

I have a code like this:

<mx:Repeater id="allItemRepeator"
dataProvider="{_model.allItems}"
>
<components:ComponentSelector id="componentSelector"

[Code]....

When code changes for allItems the item disapears from screen as expected but still sits in memory! I know this by a function inside a compoenent that has "trace" so the trace output still displays even after the component disappears from screen. How do I ensure that the element is deleted when it's reference is deleted? Will using List-based component to display items instead of "Repeator" solve the problem (it requires significant refactoring of my code so I'm asking before trying it out)

View 1 Replies

Flex :: Repeater Item As An Array Index (binding)?

Oct 12, 2010

I have a label inside a repeater (rptInfos), and I have an arraycollection (Texts) that has the translations. The "Texts" content is changing when I change the language, and normally I use {Texts.getItemAt(219}} for example when I need a translated text. But in the repeater I have a translateable column, so I want to use it like this:

<s:Label text="{Texts.getItemAt(rptInfos.currentItem.DictID as int)}" />

but it says "Syntax error: expected a definition keyword (such as function) after attribute , not target".I wanted to translate it in the labels creationComplete event, but than I can forget about binding, so only when reloaded can I have the content to update.

View 2 Replies

Flex :: Unable To Generate Initialization Code Within Repeater?

Feb 22, 2011

Following error is arising if I use NavigatorContent in Repeater. Is there a way to initialize image and lable on which I am encountering following error: Unable to generate initialization codewithin Repeater, due to id or databinding on a component that is not a visual child.

Code:
<mx:Repeater id="rep" dataProvider="{usersArray}">
<s:NavigatorContent width="100%" height="100%" label="{rep.currentItem.name}" >

[code]....

View 1 Replies

Flex :: Add Event Listener To Components Inside A Repeater

Oct 11, 2011

I want to add an event listener to each component inside a repeater, but don't know how. Here's some code I have tried:

<mx:Repeater id="rp" dataProvider="{dataProvider}" width="100%">
<mx:Button id="attach" creationComplete="addListeners(attach[rp.currentIndex])"/>
</mx:Repeater>

This doesn't work. creationComplete is not called until the repeater has finished instead of (as I expected) when the creation of the button is complete. I'm not sure how to accomplish this.

BTW - I also tried placing the creationComplete on the parent component to the repeater, but it would only be called the first time the component was rendered (the data inside the repeater sometimes changes) so that didn't work.

View 1 Replies

ActionScript 3.0 :: Flex: Send Event Or Something To Repeater Item

Feb 13, 2010

I have a Tile with a repeater. I need to select a repeater item or the tile and change its values, or fire an event, or something.

View 1 Replies

Flex :: Getting .length Of Custom Component Id Within A Repeater Works Sometimes But Not All The Time?

Jun 7, 2011

I have a repeater that populates a component, called 'project'. The project components are given an ID of 'wholeProject'. In all of my functions up until now, I was able to determine how many project components were made by doing the following:

wholeProject.length;

I used this in for loops, for each loops, and for changing the item settings within a project, i.e. something like this:

wholeProject[i].studentName = "Billy Bob";

However, I'm creating a new function that does not seem to like this wholeProject.length reference. I'm using it within the same level as all the others (i.e. the parent level). So far, my function is simply this:

public function getStudentYears():void
{
Alert.show(String(wholeProject.length));
}

when the application loads, the alert message simply does not appear. If I change the alert to something like this:

Alert.show("This is just a test.");

it works just fine. But for some reason, the wholeProject.length doesn't work in this function whereas it does in all my other ones.

View 1 Replies

Actionscript 3 :: Flex 3: Run A Function After A Repeater Is Completed Done Loading The Children?

Jun 10, 2011

I have a repeater which creates a child named "wholeProject" each time the repeater loops.

<mx:Repeater id="projectRP" dataProvider="{projectsHttp.lastResult.project}">
<Block:project
id="wholeProject"

[Code]....

As you can see from the last line of the piece, i have a the creationComplete option run two functions. What I would LIKE to happen is once the repeater is done loading all of the block:project pieces for each function to run once and only once. Instead, the two functions are running after each is created. I tried putting the creation complete in the tag, but that didn't work.

Is there a way to tell the creationComplete piece to run only when the last piece of the repeater has been created?

View 1 Replies

Flex :: Flash Builder - Datagrid Within Repeater - Data Bind Warning?

Jul 8, 2010

In my Flex app I am using a repeater to show a report on my database data. On this report the user can "drill-down" on the data to show more detail. In order to make this easier on the eye I have a header label and then a datagrid within the repeater.Whilst this works perfectly, because the dataprovider for the datagrid comes from an array in the repeaters dataprovider, it is causing the following warning:Data binding will not be able to detect assignments to "report"The warning is for this line:

<mx:DataGrid id="dgReport" dataProvider="{rptReport.currentItem.report}" rowCount="{rptReport.currentItem.report.length}">
<mx:Script>

[code].....

View 1 Replies

Actionscript 3 :: Flex Repeater - Toggle Sibling Component Visibility On Checkbox Change

Jun 2, 2010

I have a Flex repeater that has a complex item template. When a checkbox is clicked, I need to toggle the visibility of a sibling button contained in the same repeater template. Since I can't add binding expressions to event handlers, I can't pass in the repeater item's index.

How can I access sibling components inside a repeater item?

View 1 Replies

Flex :: Repeater Not Working Fine When Passed A Dataprovider (array) Having A Single Element?

Feb 24, 2011

I am using a Repeater in an Accordian which does not appear to see a single element in userArray. If I add another entry to userArray then the Repeater works fine.

private function currUsersServiceHandler(event:ResultEvent):void{
if (event.result.currentUsers != null)
{
if (event.result.currentUsers.user is ArrayCollection) // if more than one elements are present
{

[code]....

Edit:There is another thing I have just noticed i.e. that the accordian does show a single tab (when Array has a single element) but it's not labeled with the first name which I am setting. If I enter another user, two tabs appear and both are labeled with names I am setting. The first tab appears labeled too then.

View 1 Replies

Flex :: Dynamic - Flex Repeater Horizontal Scrollbar?

Dec 7, 2011

In my application I'm using a canvas and repeater inside HBox it is Dynamic,..now I want to keep a horizontal scrollbar for the same, I may display more than 50 canvas addresses inside that Hbox and repeater.Here is my code:

<mx:HBox id="addrBox" x="42" y="161" width="1000%" styleName="ContextPanel" resizeEffect="resize" horizontalGap="5" height="0" paddingLeft="15">
<mx:Repeater id="rpt" maxWidth="1000" dataProvider="{ customerAddress }" >[code]....

Kindly give some idea for getting horizontal scroll bar for the Repeater.

View 2 Replies

Arraycollection - Flex 3 Removing Items From An Array Collection When The User Clicks A Button And Reflecting That In A Repeater

May 18, 2011

I have an arrayCollection with the following structure:

[Code]...

the AC is defined as follows:[Bindable] private var projectErrorsAC:ArrayCollection = new ArrayCollection;

I'm using this AC in a repeater to display each error. After each error is shown, I've placed an "Accept" and "Deny" button. Once the user clicks either one of these buttons, I'd like to call a function that removes the particular error from the AC. Here's what I have so far:

[Code]...

View 2 Replies

Change Child Component In Another In A Repeater?

Nov 10, 2010

I have a custom component in a repeater. This component has a child component which can be of two types depending on some conditions. [coed]...

When I place breakpoints in the functions called at creationComplete, I can see that the component assigned to placeHolder is correct but it does not show on my display. I tried refreshing by calling invalidateDisplayList in every place I can think of but it does not seem to work.

View 1 Replies

ActionScript 2.0 :: Getting The Movie Clip Repeater?

Dec 15, 2008

where I have a movie clip positioned x = 0, y = 0 and its width and height is 26 px.I would like to repeat this clip as many times as possible to fill the entire stage and also fill it if the user resizes the browser too.

View 1 Replies

Actionscript 3 :: Repeater Destroy Repeated Items?

Jan 31, 2011

I am stuck in improving the performance of repeater. I have repeater(recycleChildren = "true") with a custom repeating component in a pop up window. The problem is when I close the popup window it does not destroys the instances of repeater item. When I repeater the popup window profiler show the instances count as: reptur.dataProvider.lenght + the instances that were there at the time of closing the popup window.

So the memory shoots up & not release as I close & open the window.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved