Re: [flexcoders] List ItemRenderer Issue FB4
Use of creationComplete is discouraged if renderers are being recycled. On 4/8/10 4:29 PM, "jmfillman" wrote: I'm not sure if this is an issue with the list component itself, or, more likely, my itemRenderer for the list. I have a few lists and if I run my application in full screen, everything appears to be okay. However, if I reduce the browser size, I cannot scroll the list to the bottom. Sometime when I re-size the browser, the items in the list revert their sort order. What makes me think it may be related to the itemRenderer is that a couple times I've seen some duplicate items in my list that appear, after I re-size the screen. List Tag (from a Skin): ItemRenderer code: http://ns.adobe.com/mxml/2009"; xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" autoDrawBackground="true" creationComplete="init();"> -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] List ItemRenderer Issue FB4
I'm not sure if this is an issue with the list component itself, or, more likely, my itemRenderer for the list. I have a few lists and if I run my application in full screen, everything appears to be okay. However, if I reduce the browser size, I cannot scroll the list to the bottom. Sometime when I re-size the browser, the items in the list revert their sort order. What makes me think it may be related to the itemRenderer is that a couple times I've seen some duplicate items in my list that appear, after I re-size the screen. List Tag (from a Skin): ItemRenderer code: http://ns.adobe.com/mxml/2009"; xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" autoDrawBackground="true" creationComplete="init();">
Re: [flexcoders] list itemrenderer
Yves, sorry for slow reply... I've written a custom itemrenderer for a list component, but the proxy instance (when dnd'ed) has to look different from the instance of itemrenderer which is actually dnd'ed. The proxy uses same class and receives same data object as item in list... so is there a possibility to set a property only for the proxy instance, or get a property to distinguish proxy from an instance actually in the list ? thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056 2009/5/25 Yves Riel > > > You'll have to be a little bit more specific. What are you trying to > achieve? You can listen to any drag event in any controls and do custom > actions. > > -- > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *thomas parquier > *Sent:* Sunday, May 24, 2009 4:57 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] list itemrenderer > > Hi, > > Is there a possibility to do some code differently in a drag proxy instance > of itemRenderer ? > > thomas > --- > http://www.web-attitude.fr/ > msn : thomas.parqu...@web-attitude.fr > softphone : sip:webattit...@ekiga.net > téléphone portable : +33601 822 056 > >
RE: [flexcoders] list itemrenderer
You'll have to be a little bit more specific. What are you trying to achieve? You can listen to any drag event in any controls and do custom actions. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Sunday, May 24, 2009 4:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] list itemrenderer Hi, Is there a possibility to do some code differently in a drag proxy instance of itemRenderer ? thomas --- http://www.web-attitude.fr/ <http://www.web-attitude.fr/> msn : thomas.parqu...@web-attitude.fr <mailto:thomas.parqu...@web-attitude.fr> softphone : sip:webattit...@ekiga.net <mailto:sip%3awebattit...@ekiga.net> téléphone portable : +33601 822 056
[flexcoders] list itemrenderer
Hi, Is there a possibility to do some code differently in a drag proxy instance of itemRenderer ? thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056
RE: [flexcoders] List itemrenderer
Read through the item renderer posts on my blog From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Dhanda Sent: Wednesday, July 23, 2008 8:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] List itemrenderer Hii guys, am sure that this had been discussed here before. My problem details are: I am trying to put a custom item renderer in my list component. And the custom renderer is an HBox. Now, what happens is when I select an item in the list, it get selected(which is absolutely fine). But when I scroll down, I find that the item underlying to my previous selected item is also got selected(after scrolling down). Can anyone point me to any previous post or otherwise can put some light to it's solution. Thanks, Manu. -- View this message in context: http://www.nabble.com/List-itemrenderer-tp18624634p18624634.html <http://www.nabble.com/List-itemrenderer-tp18624634p18624634.html> Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] List itemrenderer
Hii guys, am sure that this had been discussed here before. My problem details are: I am trying to put a custom item renderer in my list component. And the custom renderer is an HBox. Now, what happens is when I select an item in the list, it get selected(which is absolutely fine). But when I scroll down, I find that the item underlying to my previous selected item is also got selected(after scrolling down). Can anyone point me to any previous post or otherwise can put some light to it's solution. Thanks, Manu. -- View this message in context: http://www.nabble.com/List-itemrenderer-tp18624634p18624634.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] List ItemRenderer and variableRowHeight
Unless you want the TextArea's scrollbars, you should just set wordWrap=true and the default renderer will take care of it. If you want to customize the renderer, copy the code and modify it. TextArea is a bit heavy for renderers especially if you don't need the scrollbars, and the default renderer code will show you how to figure out the appropriate measuredHeight. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Phil Heinz Sent: Tuesday, February 26, 2008 10:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] List ItemRenderer and variableRowHeight I have a List component with a custom item renderer. The List is set to variableRowHeight=true. In the renderer is a regular TextArea component that I want to grow in size vertically for the longer data strings. My problem is I don't quite understand how to automate the process of sizing the TextArea and then the renderer height from the TextArea.textHeight property. I can successfully do it manually, attaching a click event to the TextArea, that calls the following function in the renderer: private function updateHeight(ev:MouseEvent):void { ev.target.height = ev.target.textHeight + 5; this.height = ev.target.y + ev.target.height + 25; } This perfectly sizes each item when I click on them. The problem is I can't get it to function properly when I try to size them from an event representing the item's creation. I have tried sizing on the following events: 1) renderer creationComplete and added events 2) in the data setter override function for the renderer No matter what I try to do, automated sizing produces incorrect results. I am sure I just don't understand - not the first time!!! Thanks for any help!!! Phil
[flexcoders] List ItemRenderer and variableRowHeight
I have a List component with a custom item renderer. The List is set to variableRowHeight=true. In the renderer is a regular TextArea component that I want to grow in size vertically for the longer data strings. My problem is I don't quite understand how to automate the process of sizing the TextArea and then the renderer height from the TextArea.textHeight property. I can successfully do it manually, attaching a click event to the TextArea, that calls the following function in the renderer: private function updateHeight(ev:MouseEvent):void { ev.target.height = ev.target.textHeight + 5; this.height = ev.target.y + ev.target.height + 25; } This perfectly sizes each item when I click on them. The problem is I can't get it to function properly when I try to size them from an event representing the item's creation. I have tried sizing on the following events: 1) renderer creationComplete and added events 2) in the data setter override function for the renderer No matter what I try to do, automated sizing produces incorrect results. I am sure I just don't understand - not the first time!!! Thanks for any help!!! Phil
Re: [flexcoders] List ItemRenderer woes
Thanks Sherif - that did the trick. Paul - Original Message - From: Sherif Abdou To: flexcoders@yahoogroups.com Sent: Saturday, February 16, 2008 2:54 PM Subject: Re: [flexcoders] List ItemRenderer woes don't forget to rap it in an xmlCollection OR - Original Message From: Paul Andrews <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Saturday, February 16, 2008 5:41:15 AM Subject: [flexcoders] List ItemRenderer woes I am prepared for a "Doh" moment. Can anyone explain why uncommenting the creation complete handler stops the menu from working? Paul http://www.adobe. com/2006/ mxml" layout="absolute" > -- Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: [flexcoders] List ItemRenderer woes
don't forget to rap it in an xmlCollection OR - Original Message From: Paul Andrews <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Saturday, February 16, 2008 5:41:15 AM Subject: [flexcoders] List ItemRenderer woes I am prepared for a "Doh" moment. Can anyone explain why uncommenting the creation complete handler stops the menu from working? Paul http://www.adobe. com/2006/ mxml" layout="absolute" > Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] List ItemRenderer woes
I am prepared for a "Doh" moment. Can anyone explain why uncommenting the creation complete handler stops the menu from working? Paul http://www.adobe.com/2006/mxml"; layout="absolute">
[flexcoders] List itemRenderer based on VBox error when verticalGap
I'm using the latest Flex 3 Beta SDK and I've just created an itemRenderer based on a VBox which I'm using in a List. Everything is fine until you scroll down and then back up to the top, if you do this the first item height will have shrunk and it will never resize. I tried overriding the measure() method but that didn't fix it, but I did notice that if I removed the verticalGap on the VBox that fixed the issue. I'm not sure if this is a known issue or not (haven't tried with Flex 2), but I could do with a workaround for when a verticalGap is applied (without adding extra containers) if anyone has any thoughts. -D
RE: [flexcoders] list itemrenderer rollover without backgroundColor / alpha?
You could use ITEM_ROLL_OVER instead, or set alpha to 0. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tddclare Sent: Tuesday, May 15, 2007 1:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] list itemrenderer rollover without backgroundColor / alpha? I have an component (HBox) that I'm using for a List's itemRenderer. I added handlers for "rollOver" and "rollOut" to try to make a "delete this item" button appear and disappear for each item as you roll over / out of it. The button was fizzling on and off until I set the background color and alpha of the HBox (to 0x0 and 1.0)... then the button appeared and disappeared as expected. Changed the color to 0xFF to make it look better and thought I was home free. Only issue is that the list's selection highlight doesn't show thru the backgroundColor. Is there any other way to get the HBox's rollover handler to see the rollOver without setting the background color/alpha? Or am I doing something wrong? Thanks! -- TC
[flexcoders] list itemrenderer rollover without backgroundColor / alpha?
I have an component (HBox) that I'm using for a List's itemRenderer. I added handlers for "rollOver" and "rollOut" to try to make a "delete this item" button appear and disappear for each item as you roll over / out of it. The button was fizzling on and off until I set the background color and alpha of the HBox (to 0x0 and 1.0)... then the button appeared and disappeared as expected. Changed the color to 0xFF to make it look better and thought I was home free. Only issue is that the list's selection highlight doesn't show thru the backgroundColor. Is there any other way to get the HBox's rollover handler to see the rollOver without setting the background color/alpha? Or am I doing something wrong? Thanks! -- TC
[flexcoders] List itemrenderer problem
Hi I m using a list with an item renderer(some labels). Items in the list shows some errors when i update an item in my dataprovider(array collection) . The item renderer's label donot shows the updated object's data.But the arraycollections is updated successfully..
Re: [flexcoders] List itemRenderer problem with example
Hi Tom, You're right that only a finite number of list itemRenderers are created. When something changes (like the visible portion of a list) those that don't need to be re-rendered are moved on stage. They are only re-rendered when the necessary (i.e. when the data changes). You have to make certain that each itemRenderer is properly initialized, and that if itemRenderers are moved, their state is checked and they are re-rendered accordingly. Posting the relevant code here might help expose the problem. Best Regards, Ciarán On 2/24/07, Tom Bray <[EMAIL PROTECTED]> wrote: > Here are the steps to see my issue in action: > > 1. go to http://www.tombray.com/queryBuilder/ > 2. click the plus sign twice to create two more list items > 3. change the first combobox in the first item to "Date" and notice > that the itemRenderer changes state > 4. click the minus sign in the first item (the one you just set to Date) > 5. notice that the bottom itemRenderer is now in the "Date" state but > shouldn't be. > > So, I'm assuming that the List is recycling itemRenderer instances > for efficiency, but I'd like a better understanding of what's going > on and a recommended strategy for dealing with this. Any help? Thanks! > > -Tom > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > >
RE: [flexcoders] List itemRenderer problem with example
In your itemRenderer, you must update a property in the dataprovider item when the user causes the state to change, and in the overrides set data() function, you must read this item property and set the state accordingly. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray Sent: Saturday, February 24, 2007 6:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] List itemRenderer problem with example Here are the steps to see my issue in action: 1. go to http://www.tombray.com/queryBuilder/ <http://www.tombray.com/queryBuilder/> 2. click the plus sign twice to create two more list items 3. change the first combobox in the first item to "Date" and notice that the itemRenderer changes state 4. click the minus sign in the first item (the one you just set to Date) 5. notice that the bottom itemRenderer is now in the "Date" state but shouldn't be. So, I'm assuming that the List is recycling itemRenderer instances for efficiency, but I'd like a better understanding of what's going on and a recommended strategy for dealing with this. Any help? Thanks! -Tom
[flexcoders] List itemRenderer problem with example
Here are the steps to see my issue in action: 1. go to http://www.tombray.com/queryBuilder/ 2. click the plus sign twice to create two more list items 3. change the first combobox in the first item to "Date" and notice that the itemRenderer changes state 4. click the minus sign in the first item (the one you just set to Date) 5. notice that the bottom itemRenderer is now in the "Date" state but shouldn't be. So, I'm assuming that the List is recycling itemRenderer instances for efficiency, but I'd like a better understanding of what's going on and a recommended strategy for dealing with this. Any help? Thanks! -Tom
[flexcoders] List itemRenderer
Hi all, I need some help with List and itemRenderer I need to create new component which can expand items when the user click on it. I've found an example: Peter Ent's blog http://weblogs.macromedia.com/pent/archives/2006/04/a_list_itemrend.cfm When the dataProvider have less data (do not showing scrollbar when all items are expanded) all fine. But, it's not working with the big amount of data. When we scroll items the items expands automatically without any user actions. Can anybody say what the problem with it? Thanks for any advice. Code: main.mxml FieldsInlineItemRenderer.mxml: http://www.adobe.com/2006/mxml"; horizontalAlign="center" width="100%" height="100%" creationComplete="initRenderer()" verticalGap="0"> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/