Flex :: Scrolling Of List Control Is Misbehaving?

Dec 22, 2009

I am having this very weird behavior with a mx:List control not scrolling properly.Here is a snippet:

<mx:List itemRenderer="customerRender" x="19" y="257" height="68" width="290" id="orderStatusHistoryList" color="#CCCCCC" rowHeight="35" ></mx:List>

The custom render creates a vBox that is 35 pixels high with some labels in it.Now, my dataProvider, set in the script block,is returning 3 items for the list (say item1, item2 and item3). Because of the height of the list control, only 2 are shown initially.Now for the weird part, when I scroll down the list to see the next item it is all messed up.

Initial display:
Item 1
Item 2

Display after clicking the scroll down button:

Item 2 (expected)
Item 1 (What the ?, this should be item 3)

Display after click the scroll down button one more time:

Item 1 (all wrong)

Now, if I increase the height of the list control,so it has enough room to display all three items, it displays fine.Also,I put a trace statement is the item render and flex is rendering all three items with the correct data.

View 1 Replies


Similar Posts:


Flex :: Scrolling Interval In A Spark List With Tilelayout Oversized While Using Mouse Wheel After Scrolling With Mouseclick

Aug 27, 2010

I have a spark List with an item renderer and a tile layout. If I scroll by clicking with the mouse on the scroll bar and trying to scroll with the mouse wheel after that, there is a problem: The interval of the scrolling is oversized, instead of scrolling one item down (or up) the List scrolls 4 items down (or up).

[Code]...

View 1 Replies

Flex :: 3: Scrolling Of List Items With In A List Via Scroll Wheel

Dec 31, 2009

Here is a snip from within my code:

[Code]...

The 'recommendations' dataProvider is an ArrayCollection of String, which are generally sentences about as long as this one. By setting the variableRowHeight and wordWrap properties as shown, if a sentence is too long to fit on a single line, everything works fine- the row expands and the messages show on two lines, or occasionally three.

The space allocated for this panel within the entire canvas means if the total text size of 'recommendations' exceeds six lines, I need for the entire list scroll. This is also working just fine. The trouble is when using the mouse wheel to do the scrolling- Flex scrolls both the entire list and the single item where the mouse is hovering. Often this results in only the second half of a sentence being visible. Non-programmer friends I have asked to look at this noticed this, and tell me it as a problem. If a user does not notice the dual scrolling, and sees only a fragment of a sentence, it will be perceived as an error in the application.

[Code]....

View 1 Replies

Flex :: MX List ItemRollOver Event Equivalent On A Spark List Control?

May 26, 2011

Flex 3 List control had a itemRollOver event. Flex 4 List doesn't have it. Is there an equivalent or a workaround for this issue?

View 2 Replies

Flex :: How To Detect Whether List Is Scrolling Or Not

Jun 13, 2011

Is there any way to detect whether a list is scrolling or not, likelist.isScrolling.

View 3 Replies

Flex :: Incomplete List Scrolling?

Oct 23, 2011

I have a flex list, nothing fancy:

<s:List id="list" left="0" right="0" top="0" bottom="0" borderVisible="false"
dataProvider="{data}" labelField="1" textAlign="left"
itemRenderer="MXML.ItemRenderers.ListItemRenderer" horizontalScrollPolicy="off">

[code].....

View 1 Replies

Flex :: Auto-scrolling Vertical List?

Jan 10, 2011

In my air app I have a list(vertical) on the left side, like a sidebar. It`s working fine! The things is I want to put some animation in this list, which all the times when I select one item all the list moves, and this item goes to the center of the list!Someone have same example or URL, or something?

View 2 Replies

Scrolling A Sparks List With TileLayout In Flex 4.5?

Sep 1, 2011

I'm experiencing a very strange behavior with a spark list with TileLayout placed inside a scroller. Basically, I want to have a title area above my list that scrolls away when the user scrolls down the list. To do this I put the title and the list inside a Group and wrapped the group inside a scroller with width and height = 100%. I also set the verticalScrollPolicy to off on the list to make sure everything scrolls together.

The problem is that if the list has the default VerticalLayout everything works fine but if you assign a TileLayout to the same list it only partially renders the items (about 30 items when testing on iPhone 4).

Here's the fully functioning code. Try it like this first, then try removing the <s:layout> part to confirm that it works well with VerticalLayout:

[Code]...

View 1 Replies

Flex :: Scrolling Through List Element Causes Text To Scroll As Well

May 12, 2010

I'm using a list element with variableRowHeight and word-wrap set to true like in the example below: [URL]. When I scroll through the list with a mouse scrollwheel the text in the listItems also scroll. I know that this is to do with the height of the textField...

View 1 Replies

Flex :: Spark List Scrolling By Mouse Position

Mar 13, 2011

[code]When I hover the upper (red) part of the List (I would like to have the List scroll downward, the higher the mouse position is, the faster it should scroll). Similarly, If the mouse hovers over the bottom (red) part, the List scrolls upwards, and the lower the mouse is hovered, the faster the list would scroll. The current code does work - Though, the trace outs make it obvious that:this.layout.verticalScrollPosition += (mouseY - 220)*0.5.or this.layout.verticalScrollPosition += (mouseY -86)*0.5;are giving jumping effects, is there a way to make these values change more linearly or smoother? I created an AnimateProperty, but that works well only if I would like to scroll to a selectedIndex, In this case, I would like the scroller to keep scrolling linearly as the mouse is hovered to a particular red area, and increase in speed when I scroll to either extremity.The Objective: While the mouse is over the Bottom (red part )of the List, the verticalScrollPosition scrolls faster as it gets farther than the center of the ticket list... yet there is jumping effect going on, I suppose due to the EnterFrame. the Same with Upper Part... the higher the cursor is, the faster the List should scroll.I feel this is a common problem to Flash CSx developers.

View 1 Replies

Flex :: Scrolling With The Mouse Wheel On An Application Containing A Spark List?

Mar 18, 2011

I have an Application displaying a spark.List. Every item of my list must be visible (no vertical scroll).

I need my Application to be scrollable in a web browser, so I've add a Scroller containing all my components. When the browser window is too small to contain all my application, scrollBar appears.

My application looks like that :

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" >

[Code]....

When I scroll with my mouse cursor outside of the List, everythink works fine. When I scroll with my mouse cursor over the List, nothing happends.

It looks like the mousewheel event is stopped by the List, even if the List does not have a scrollbar.

View 2 Replies

Flex :: Keep A List From Scrolling On DataProvider Refresh/update/change?

Jun 30, 2011

I have a simple list and a background refresh protocol.When the list is scrolled down, the refresh scrolls it back to the top. I want to stop this.I have tried catching the COLLECTION_CHANGE event and validateNow(); // try to get the component to reset to the new datalist.ensureIndexIsVisible(previousIndex); // actually, I search for the previous data id in the IList, but that's not importantThis fails because the list resets itself after the change).I hate to use a Timer, ENTER_FRAME, or callLater(), but I cannot seem to figure out a way.The only other alternatives I can see is sub-classing the List so it can catch the dataProviderChanged event the DataGroup in the skin is throwing.

View 4 Replies

Flex :: 4.5 : Strange Scrolling Behaviour In Custom Layout Used In A List

Sep 15, 2011

I created a custom layout for a list, to be used on a mobile (android). I used this as example : [URL], using virtualization. Now the problem I have is with scrolling : when scrolling to the bottom of the list, there seems to be always a "bounce back", as if the list would have reached and as if the bounce/pull effect is taking place. But in fact the list has not reached the end at all, in fact I can not even scroll to the last element in the list. When going back from bottom to top, there's no problem at all.

I trace the top and bottom of the Scrolling Rectangle (Rectangle.getScrollRect) and there I can see that when scrolling down, the top and bottom parameters increase, but when releasing the touchscreen, all of a sudden the parameters decrease again with a certain amount, and so never reaching the end of the list. All my code is available on google project hosting : [URL]

View 1 Replies

ActionScript 3.0 :: Flex Scrolling Through List Causes Text Elements To Scroll To?

May 12, 2010

I'm using a list element with variableRowHeight and word-wrap set to true like in the example below:

[URL]

When I scroll through the list with a mouse scrollwheel the text in the listItems also scroll. I know that this is to do with the height of the textField...

View 1 Replies

Flex :: Set Color Of A Particular Row In List Control For Mobile?

Jul 13, 2011

I have a list in flex mobile project which contains multiple rows. I want to set color of specific rows based on some logic.

View 1 Replies

Flex :: Navigate In Spark List Control?

Aug 22, 2011

I'm building a mobile app, using spark list control. When user tap on a list item, i want it to navigate to that correspondence page

<s:List id="list" width="100%" height="100%" labelField=" label">
<s:dataProvider>
<s:ArrayList>

[Code].....
 
how do i code it so that when user tap on item label="Page One" it will navigate to PageOneView.mxml and if it tap on "Page Two" it will go to PageTwoView.mxml and so on.

View 1 Replies

Flex :: Drag And Drop Between List Control And Chart?

Feb 18, 2010

I am trying to implement a drag and drop function between a list control and a columnchart in Flex3. List items should, when dragged and dropped on the chart, be displayed raphically in the columnchart.Alas, dropping the listitems on the chart does not seem to result in a proper graph.Here my code till so far with regard to the drop part:

private function doDragDrop(event:DragEvent):void{
var ds:DragSource = event.dragSource;
var dropTarget:ChartBase=ChartBase(event.currentTarget);

[code]....

View 1 Replies

Flex :: Add Separator Between Items In A Spark List Control?

May 21, 2010

I have a s:List where I've defined my own itemRenderer, and would like to insert a horizontal line separating items, similar to the way the mx:LinkBar works. I don't want to have a line at the top or bottom of the list, so I can't just include an upper or lower border in the itemRenderer. I was hoping the itemRenderer could be made aware of its index in the list, but I don't see how.

View 2 Replies

Flex :: How To Set Variable Size For List Control Item

Jun 17, 2010

The following code display a list of comments using List control. The item height set to a fixed value (150), so it seems working: if the content is too long, the scrollbar shows. However, what I really want is not to set the height but let it to change according to the content size. Is there any way to accomplish this?

<mx:List id="commentList" width="100%" dataProvider="{commentSet.commentArrayColl}" rowCount="{commentSet.commentArrayColl.length}" >
<mx:itemRenderer> <mx:Component>
<mx:VBox width="100%" height="150" >
<mx:Text text="{data.commentContent}" />
<mx:Text text="{data.username} ({data.modified})"/>
</mx:VBox> </mx:Component>
</mx:itemRenderer> </mx:List>

To be more clear, I don't want to set the itemRenderer's VBox height to "150" or any other fixed value - but it'll only show one line of the text if I don't do it. So I'm looking for a way out of this. (If the VBox is not inside the itemRenderer, it'll auto adjust height as Text field string length grows - that's what I want.)

View 2 Replies

Flex :: Set The Scroll Position For A Spark List Control?

Aug 9, 2010

How can I set the scroll position for a Spark List control?

View 1 Replies

Flex :: Put XML Query Inside A Drop Down List Control?

Feb 7, 2011

I have this project for school where i have to populate a drop down list control from an xml file.I mange to do that for a label/text input control, but i can't seem to do that on a drop down.I get this error any time i tell him to "additem" with an xml query (not getting it with simple text):"#1009 Cannot access a property or method of a null object reference"[code]...

View 1 Replies

Flex :: 3 - Adobe 3 List Control Selection And Change Event

Nov 22, 2009

I created a list control at runtime as following:

[Code]....

//Where myDataArray is an ArrayCollection consisting of my Custom ValueObjects. When i execute the code it displays my list with custom item renderer, which is fine. But when bring my mouse over it, it doesn't give any colour highlight which means it is not selecting. Secondly, when i click on any of the list item, it doesn't dispatch any change event. I tried a lot but couldn't understand it.

View 1 Replies

Actionscript 3 :: Make An Item In A Flex List Control Not Selectable?

Jan 12, 2010

Is it possible to make an item in a List control not selectable? If so, how would this be accomplished?

I've tried one thing so far. What I did was use a custom item renderer that checks for a value in the data property upon a FlexEvent.DATA_CHANGE event. If that value is not set, I tried setting the item renderer's selectable property to false. This, unfortunately, does not seem to work.

View 4 Replies

Flex :: Auto-select The First Index In A Sparks List Control?

Apr 11, 2010

i have a spark List control. it has a dataProvider that shows reply from twitter search.i have created a function for change handler like this:

protected function list_changeHandler(event:IndexChangeEvent):void
{
ta.text = coverflow.selectedItem.title;
}

so, whenever i select each of the items in the List i will see the message(ta.text)but now, instead of me manually clicking the first time, i want it to automatically click/select the first item and see the first message(ta.text)how do i do it?

View 4 Replies

Flex :: List Component That Acts As If Control Was Permanently Pressed

Jun 1, 2010

I have a list control and i want the user to be able to select many items at a time. Thus I want it to act that if the control key is pressed while he is clicking. Eg if he clicks on a selected row it should become unselected and if he clicks on a unselected row it should become selected.

View 1 Replies

Actionscript 3 :: Flex : Make A Generic List Control That Has X Buttons In It

Dec 3, 2010

I am trying to make a generic list control that has x buttons in it so that users can remove items from the list by clicking the x button. However, this list control needs to support item renderers while still standardizing the layout of items placed next to x buttons.

So I figure the best approach would be to extend the list control and use a renderer that draws the x button and combines that with what ever renderer the user supplies. Unfortunately I cannot figure out how to do that.

I tried overriding newInstance method from the IFactory interface and used that to create an HBox that contains my button and inserts the newInstance result from a user supplied renderer, however it wasn't complete. It displayed as I expected, but the mouse over effect only worked on the user supplied renderer portion and not the entire HBox that my custom renderer made.

View 3 Replies

Actionscript :: Target And Display An Object Of List Control In Flex

Oct 1, 2011

i have made a list control. i want to display the name of the objects in it in a text control box

the code i am using here is

public function add(event:MouseEvent):void
{
var str:String;
str = mylistcontrol.dataProvider.getItemAt(0).toString();

[Code]....

The problem with this code is i am using index value of 0. however i want to display the name of object on which i have clicked or which is highlighted.

View 1 Replies

Actionscript 3 :: Flex: Can List Be Used To Display Control In Equally Sized Tiles

Sep 2, 2010

In one of the application I am working, List has been used. I am required to display items in the form of tiles. I do not want to change the component as of now. Is there any way to achieve this layout in list only.

View 3 Replies

Flex :: Set The "format" Used For Drag'n'drop On A List Control?

Dec 21, 2009

I'm dragging from a TileList to a custom component. I want to know what is being dragged before I accept it. How do I set the "format" that is used for "event.dragSource.formats" in the DragEvent?

Edit for clarification: When you set "dragEnabled=true" on the TileList, it takes care of the drag source stuff, but it uses "items" as the format for the DragEvent. I'm looking for a way to have the TileList use the correct format.

View 2 Replies

ActionScript 3.0 :: Dynamic Scrolling List With Jpg Support

Feb 20, 2009

I'm trying to create a list basically with more than one selectable field and the a jpg field all aligned together a la list field but I want to be able to add a field that uses a jpg as well and I want the fields to be selectable. I dont want to select on one item in the row and all of the rest in the row get selected. Similar to what I'm trying to do is the Tilelist and the list component combined. I'm getting an array from database query.

[Code]...

View 1 Replies







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