Flex :: Listview - List - Scrollbars Become Visible And Cover The Itemrenderer?

Sep 22, 2011

I have a list inside a VDividedBox. When the box is resized so the vertical scrollbar shows on the list, it covers some of the itemrenderers. How do I get the list to resize horizontally so that the scrollbar does not cover the renderers?

View 1 Replies


Similar Posts:


Flex :: Make Scrollbars In List Invisible?

Sep 1, 2011

I'm using Adobe FLEX 4.5.1 for Mobile.I have a List that displays some images:

<s:List id="imageList" initialize="init()" verticalScrollPolicy="off" itemRenderer="skins.CustomIconItemRenderer" width="100" height="32" verticalCenter="0" horizontalCenter="0">

[code]......

View 1 Replies

Flex :: Mobile - Know Which Itemrenderer Is Visible?

Mar 19, 2012

I have a sparks List with the following attributes:

verticalScrollPolicy="off"
horizontalScrollPolicy="on"
pageScrollingEnabled="true"

[code]...

View 1 Replies

Flex :: Automatically Display A ToolTip In An ItemRenderer When The Row Is Visible In The DataGrid?

Jan 11, 2011

I have an AdvancedDataGrid that uses HierarchicalData to display data in a tree format. For one of the columns, I'm using an AdvancedDataGridRendererProvider to conditionally display an image if certain conditions are met. I'm currently using the ToolTipManager to display additional information if the user mouses over the image.Here's what I would like to do:Instead of showing the toolTip when the user places their mouse over the image, I would like to automatically display the toolTip whenever the image is visible in the AdvancedDataGrid. If the user scrolls through the AdvancedDataGrid, the toolTip should move and follow along with its image accordingly.

Sample AdvancedDataGrid:
<mx:AdvancedDataGrid id="myAdvancedDataGrid"
displayItemsExpanded="true"

[code].....

View 1 Replies

Flex :: Acess ItemRenderer In List?

Jun 15, 2010

How to access List itemRenderer and its properties (Spark - Flex 4)?I want to iterate through list and do something like (note it's pseudo code):

for (var i=0;i<NUMBER_OF_ITEMS_IN_LIST; i++){
myList.getItemRenderer[i].property
}

[code].....

View 2 Replies

Flex - Use A Different ItemRenderer For Different List Items?

Aug 3, 2010

I have a Flex list and a custom ItemRenderer. I'd like to be able to have some items in the list use a different ItemRenderer (say, depending on the class of the item). Is this possible?

E.g.: <s:List dataProvider="{_systems}" itemRenderer="myItemRenderer"/>

Most items in _systems use myItemRenderer. But if element 3 of _systems is "specialSystem" the renderer would be "specialItemRenderer".

View 2 Replies

Flex 4 List ItemRenderer - Different Itemrenderers For Different Rows?

Jun 28, 2010

I'm creating a list of scores for a game. now most of the list i need to have the same ItemRenderer. but in one specific row of the list where the user who's playing is listed, it should show different information and with different background color. how can i achieve this ?

I already tried to resolve the issue with states, i created 2 states, one state called 'mine' and the 2nd state called 'others'.

the problems that i got is that when users click on one of the list rows that state changes to i donno clicked or something and that's why i assumed that states are not the right action for me.

View 3 Replies

Flex :: Reflect Changes In The List.selectedItem In The ItemRenderer?

Oct 22, 2010

When I change the: list.selectedItem.name = 'name2'

then in my item renderer

the dataChange event is not fired! and I can't update the label with the name property...

View 2 Replies

Flex :: Change ContentBackgroundColor Of List With ItemRenderer?

Feb 11, 2011

I'm attempting to change the contentBackgroundColor of a List component depending on the content found within the dataprovider.[code]...

View 2 Replies

Flex :: Get Changed Value Of Item From ItemRenderer In List?

Jun 22, 2011

I have a List with textInput as itemrenderer. Initially the list is loaded with data from a data provider. However since the items are rendered in textInputs, I have the ability to change the value of a particular item.

But when trying to access the value of the changed item using the function below, I still get the old value in my trace:

private function addItem(event:Event):void {
trace(myDataProvider.getItemAt(myList.selectedIndex).label);
}

what I need to do for the new value to be available. My itemrenderer is shown below:

<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 1 Replies

Flex :: List ItemRenderer Caching Items?

Jul 31, 2011

i am using an itemRenderer in mx:list, it has many text fields and combos, i use this item renderer to edit items in array collection, each item in the arrayCollection is of type Action which comes from BlazeDS remoting as a valueObject.my problem is when i add new item of type Action to the list dataProvider (ArrayCollection) by this code

myList.dataProvider.addItem(new Action());

the new item tooks the same data from its previous item.

View 1 Replies

Flex :: Display List ItemRenderer Index?

Aug 2, 2011

Is there a direct way to get the item index of the data inside an itemRenderer? I need to display the item number against each item. I am currently doing a workaround and won't allow reuse of my itemRenderer component.

var index:int = model.dataColl.getItemIndex(data) + 1;
itemNo = index.toString();

This is what i am using now, it works, but the concepts of component reuse and data abstraction are compromised.

I am using Flex 3.

View 3 Replies

Flex :: Limit Width Of Custom List Itemrenderer

Jul 23, 2009

I'm using a custom itemrenderer to display a list of photos and need to know how to control the width. At the moment it does this: Which, as I'm sure you'll agree, is eye-bleedingly ugly. The list is created like this:

[Code]...

View 3 Replies

Flex :: Get The ItemRenderer Of A Spark List From Its DataProvider Object?

Oct 26, 2010

In Flex I can create an ItemRenderer to represent each item in the Lists DataProvider but how do I access the instance of the ItemRenderer via the DataProviders Object? Something like myList.getItemRenderer(dp.getItemAt(10));

View 2 Replies

Flex :: List - Checkbox Itemrenderer Enabled Property?

Nov 10, 2010

I have a list that uses a checkbox itemrenderer. The dataprovider is a collection of people. When I load the data from a file, each list item shows the person's name (last, first -- labelFunction), and the checkbox's selected property shows the person's included property. I.e.,Smith, Doug - [x]Williams, Bob - [ ]orris, Anne - [x]However, each person also has an active property. I want to disable the checkbox for people who are inactive (meaning, "you can't include inactive people").to do the same thing in a datagrid. However, none of them work and all the checkboxes are enabled regardless of the person's active status. Here is my basic code:

<mx:List id="peopleIncludedList"
dataProvider="{someProvider}"
labelFunction="peopleLabelFunction">

[code]....

View 2 Replies

Flex :: List - Data In Components Spark In A ItemRenderer?

Apr 25, 2011

I need to create a slideshow using data received from another view.I'm calling the slideshow's view like this:

<s:List id = "list" dataProvider = "{actions}"
change = "navigator.pushView (DetailsProduct, list.selectedItem) ">
<s:itemRenderer>

[code].....

View 1 Replies

Flex :: Refresh The Itemrenderer Of Each Item In The List Component

Mar 1, 2012

I have the list shown below:

<s:List id="list2" width="100%" height="100%" dataProvider="{ recordingsShown }"
itemRenderer="components.VideoItemRenderer2"
selectedIndex="0" visible="false">

[Code].....

View 1 Replies

Flex :: Displaying List Of Flex Progressbar Using Itemrenderer?

Sep 25, 2010

I want to create a list of progress bars and update the list accordingly.I have group data in an Array as

<mx:Array id="arr">
<mx:Object label="Group One" min="0" max="200" currentValue="60" />
<mx:Object label="Group Two" min="0" max="300" currentValue="50" />[code]....

The values in the array object indicate name of group,minimum,maximum and current value for the group (to be used in progressbar).I used the list with "mx.controls.ProgressBar" as itemRenderer as

<mx:List width="100%" dataProvider="{arr}"
itemRenderer="mx.controls.ProgressBar"/>

Now what I need is whenever currentValue field of Array "arr" changes i want to update the progressbar "progress" value to currentValue (where min and maximum value of progressbar are stored in Array "arr").

View 3 Replies

Flex - Setting Focus On A List ItemRenderer With TextArea Inside?

Oct 29, 2010

I've wrote a custom itemrenderer for a List component (Flex 3.5) which is a VBox with a Label and a TextArea wrapped inside. All works fine so far but I want the TextArea in the first itemrenderer to receive focus so that it instantly becomes editable when tabbing onto the List. Is that possible and if how would I achieve this?

I've already added an event listener that selects the item at index 0 but the textArea in it should also be focussed at that moment _list.addEventListener(FocusEvent.FOCUS_IN, onListFocusIn);

private function onListFocusIn(e:FocusEvent):void
{
_list.selectedIndex = 0;
}

View 1 Replies

Flex :: Spark List Itemrenderer Focus Defaults The CurrentState

Dec 29, 2010

I am using a spark list control with an itemrenderer. Whenever I set an itemrenderer's currentState, the moment I mouse out of the itemrenderer, it gets reset to its default state. How can I make an itemrenderer keep its currentState unless I explicitly tell it to change?

View 1 Replies

Flex :: Spark List With ItemRenderer Click Function Not Working?

Feb 9, 2011

I am having an issue with my ItemRenderer, which I am using for a spark List. My code is the following:

I have this list:

<s:List
id="productSetList"
dataProvider="{ model.productSets }"

[Code]....

The thing is, if I scroll the list, and click on an item, it does not trace 'arthur' ! Why is this so ? I must trace that all the time that someone clicks in the list!

EDIT: If I remove change="model.selectSet( productSetList )" in the list, it works!! but I cannot remove that, some suggestions ? How can I switch that to another function?

View 2 Replies

Flex :: Spark - Skins ArrayCollection As Dataprovider To An ItemRenderer Of A List?

May 4, 2011

Objective:I would like to pass Skins to an itemRenderer (which is a Button) of a List, and be able to skin every button in that List.This is what I have:

List:

<s:List itemRenderer="renderers.ItemRenderer" dataProvider="{collectionWorkspace}" />

ArrayCollection:

<s:ArrayCollection id="collectionWorkspace">
<comp:Layout1 />[code]...

I get an error (fixed for clarification):Error: Skin for Application....Button1 cannot be found.

View 1 Replies

Flex :: Change BorderColor Of Clicked Item (itemrenderer) In List

Jun 22, 2011

I want to set the BorderColor of certain Item Renderers (textInput) of a List. By default all have a common border color, but I want for example when clicking in an item to have a red border. I tried this on a click event in my itemRenderer,

[Code]...

View 1 Replies

Flex :: Call A Function Inside ItemRenderer In A Spark List, From The Main Application?

Sep 1, 2011

I have a main application that contains a list, using a custom itemRenderer to display data.

I would like to be able to call a function, inside the itemRenderer, from the main application.

When running the app, we have a list with three persons, and a button. I want to call the function myItemRendererFunction() inside the itemRenderer, of the selected item in the list, all this, from the main app.

[Code]...

View 1 Replies

Get A List Of Visible Nodes In A Flex Tree?

Apr 20, 2010

I have a basic Tree built in Flex. The Tree works fine. I'm attempting to get a list of all of the visible nodes. I know there is a Tree.openItems, but that does not suffice because (for example) if you open all the items in your tree and then close the root, the invisible opened items are still counted.

View 1 Replies

Flex :: Get The Visible Items On A Spark List With Virtual Layout?

Apr 12, 2010

I have:

an ArrayCollection of Numbers;

a List using the above ArrayCollection as it's dataprovider, and virtualLayout=true;

a custom ItemRenderer that shows a label with:

a) the number

b) an y position depending on the number AND the highest number visible

In another words, if I have 10 numbers in the AC, and only 5 appear on the screen, the y position of those 5 will depend on the value of the maximum number for those 5. When the user scrolls, of course those 5 elements change so the position of the label in item renderers will change.

1) How can I get the list of items that are "currently" visible?

2) Which event/method to override will help me know that the List was scrolled/the visible items changed?

View 3 Replies

Flex :: Prevent Container In ItemRenderer From Exceeding Width Of List Container?

Jul 2, 2011

In a Flex Mobile project I have a simple itemRenderer where I'm trying to create an "bubble" texting effect, similar to ichat or iphone (just so you get what im going for). But if the text is longer than the screen it runs off, rather than just going down a line.

If I set Group thats holding the rectangle(to create the bubble effect) and the label to 100% it works and keeps it from exceeding the list containers bounds, BUT the group is always at 100% and looks bad, I'm trying to keep the "bubble" JUST AROUND the text.

Anyway so, at the top of my itemRenderer I tried specifying:

<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%">

And here's my layout I figured since msg_container has a width of 100% I was hoping bubble_lable_group would just not exceed that but...it doesnt...it just runs off. I tried setting a max width but that does not allow you to input percents. And just to say it 1 more time. I know if i set bubble_lable_group width to 100% it works, and keeps it from going off the edge, but then the rectangle "bubble" stretches all the way across and just looks bad.

<s:VGroup id="main_container" horizontalAlign="left" paddingBottom="10" paddingTop="10"
verticalAlign="top" width="100%">

[Code]....

View 1 Replies

Flex :: Setting A Custom ItemRenderer In A ComboBox On Specific List Items After Combobox Creation?

Nov 8, 2010

I'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..

I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.

View 1 Replies

Javascript - Change Scrollbars Into Image Scrollbars

Jan 5, 2004

How do you change the html scrollbar (the one that you see in the far right of your browser) with your own images? I know it's possible because i've seen it before.

P.S.: I am aware of and I know how to change the color of the scrollbar. That is not what's expected. Also i think it's made possible by Javascript.

View 9 Replies

Flex :: Force The List To Load All The Items, Not Only The Visible Items?

Aug 15, 2010

I'm creating a facebook application in flex. I'm actually working on the friends component that shows your friends who are using the application. now, each friend has a profile image.

I created the component using a s:List element.

In the Skin Class of the element i configured the requestedColumnCount to 3, which means it shows 3 friends. i added buttons to scroll left and right in the list.

Whenever I scroll to see a different friend, for a half of a second i see no image because the List component is loading the image in order to view it.

is there a way to make the list preload all the elements so i won't have this kind of problem ?

View 1 Replies







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