[flexcoders] Setting default selectedIndex

2008-07-28 Thread calisza
I have what may seem a silly question to all you Flex Ninjas out there, but I need to do the following and can't seem to find the right way to do so : I have a TileList with a custom itemRenderer, each item being a thumbnail. The dataProvider is populated from a RemoteObject call. Next to the

[flexcoders] Re: Setting default selectedIndex

2008-07-28 Thread calisza
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of calisza Sent: Monday, July 28, 2008 12:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting default selectedIndex I have what may seem a silly question to all you Flex Ninjas out

[flexcoders] Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread calisza
After having a look around at various blogs, resources etc I'm stumped on the following : I have a TileList using a custom itemRenderer. The dataprovider is a standard ArrayCollection of objects. The itemRenderer contains an Image, a Label and a Button. When the user clicks the button - I want

[flexcoders] Re: Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread calisza
selected item and index will change automatically. Another way, if you want to get dirty, is to do something like this on the click event of the delete button: this.parentDocument.myTileList.dataProvider.removeItemAt(listData.rowInd\ ex); -TH --- In flexcoders@yahoogroups.com, calisza

[flexcoders] Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread calisza
I have the following scenario, I have a tilelist displaying images, each of which is being created via a custom ItemRenderer. So far so good. Now, I have an upload button, which when clicked, pops-up a TitleWindow and allows the user to add files for upload. They click upload and everything

[flexcoders] Re: Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread calisza
is the dataProvider? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of calisza Sent: Thursday, July 10, 2008 2:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tilelist, ItemRenderer not refreshing when updating dataProvider

[flexcoders] Re: Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread calisza
to use an ArrayCollection rather than an array? I think binding to Array only shows changes if the array itself is replaced, not its items. Jack --- In flexcoders@yahoogroups.com, calisza barry@ wrote: The dataProvider is a property of a Cairngorm VO. So, I have a productVO, of which

[flexcoders] Re: Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread calisza
Ok excellent, changing from Array to ArrayCollection has solved the problem. Lesson learned :) thanks for the help. --- In flexcoders@yahoogroups.com, calisza [EMAIL PROTECTED] wrote: I've been wondering about that and am in the process of testing this. Will let you know what happens