[flexcoders] TileList Binding Issue

2007-09-12 Thread Adnan Doric
Hello all,

I have a TileList binded to an ArrayCollection.

If I add more items to the ArrayCollection the TileList updates, but if 
I try to change an already existing item in the ArrayCollection, the 
TileList doesn't change.

I tried with List component and I don't have this problem, the view is 
correctly updated.

Is there something I'm doing wrong or not doing :) ?


Thank you for your response.


Re: [flexcoders] TileList Binding Issue

2007-09-12 Thread Jon Bradley

Something like the following process:

myCollection.enableAutoUpdate();
myCollection.itemUpdated(someItem,  
someProperty,someOldValue,someNewValue);

myCollection.disableAutoUpdate();
myColleciton.refresh(); // just to be sure

I have it working fine with the itemUpdated and refresh. I usually  
don't bother with the auto update stuff - but it might be needed for  
your scenario.  From what I understand, refresh() should always cause  
a data binding event for the TileList to update it's data.


good luck,

jon


On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote:


Hello all,

I have a TileList binded to an ArrayCollection.

If I add more items to the ArrayCollection the TileList updates,  
but if

I try to change an already existing item in the ArrayCollection, the
TileList doesn't change.

I tried with List component and I don't have this problem, the view is
correctly updated.

Is there something I'm doing wrong or not doing :) ?

Thank you for your response




Re: [flexcoders] TileList Binding Issue

2007-09-12 Thread Adnan Doric
I tried this with no success, my TileList items are still not updated. 
Maybe something is broken in TileList binding.

Thank you :)

Jon Bradley wrote:
 Something like the following process:

 myCollection.enableAutoUpdate();
 myCollection.itemUpdated(someItem, 
 someProperty,someOldValue,someNewValue);
 myCollection.disableAutoUpdate();
 myColleciton.refresh(); // just to be sure

 I have it working fine with the itemUpdated and refresh. I usually 
 don't bother with the auto update stuff - but it might be needed for 
 your scenario.  From what I understand, refresh() should always cause 
 a data binding event for the TileList to update it's data.

 good luck,

 jon


 On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote:

 Hello all,

 I have a TileList binded to an ArrayCollection.

 If I add more items to the ArrayCollection the TileList updates, but if
 I try to change an already existing item in the ArrayCollection, the
 TileList doesn't change.

 I tried with List component and I don't have this problem, the view is
 correctly updated.

 Is there something I'm doing wrong or not doing :) ?

 Thank you for your response

  



RE: [flexcoders] TileList Binding Issue

2007-09-12 Thread Alex Harui
Do you have a custom renderer?  Maybe you can post its code.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adnan Doric
Sent: Wednesday, September 12, 2007 12:37 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TileList Binding Issue

 

I tried this with no success, my TileList items are still not updated. 
Maybe something is broken in TileList binding.

Thank you :)

Jon Bradley wrote:
 Something like the following process:

 myCollection.enableAutoUpdate();
 myCollection.itemUpdated(someItem, 
 someProperty,someOldValue,someNewValue);
 myCollection.disableAutoUpdate();
 myColleciton.refresh(); // just to be sure

 I have it working fine with the itemUpdated and refresh. I usually 
 don't bother with the auto update stuff - but it might be needed for 
 your scenario. From what I understand, refresh() should always cause 
 a data binding event for the TileList to update it's data.

 good luck,

 jon


 On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote:

 Hello all,

 I have a TileList binded to an ArrayCollection.

 If I add more items to the ArrayCollection the TileList updates, but
if
 I try to change an already existing item in the ArrayCollection, the
 TileList doesn't change.

 I tried with List component and I don't have this problem, the view
is
 correctly updated.

 Is there something I'm doing wrong or not doing :) ?

 Thank you for your response

 

 



Re: [flexcoders] TileList Binding Issue

2007-09-12 Thread Ben Marchbanks
I ran into the same issue and never was able to resolve it. The only way I 
could 
force the TileList to refresh was to force it to re- render using a resize 
effect. - made the list 0 width and then resize reversed back to original width.

I was using drag and drop to populate one TileList from another and then 
editing 
items in the new list.

None of the suggestions from several experts made any difference.

Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918

Alex Harui wrote:
 
 
 Do you have a custom renderer?  Maybe you can post its code.
 
  
 
 
 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Adnan Doric
 *Sent:* Wednesday, September 12, 2007 12:37 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] TileList Binding Issue
 
  
 
 I tried this with no success, my TileList items are still not updated.
 Maybe something is broken in TileList binding.
 
 Thank you :)
 
 Jon Bradley wrote:
  Something like the following process:

  myCollection.enableAutoUpdate();
  myCollection.itemUpdated(someItem,
  someProperty,someOldValue,someNewValue);
  myCollection.disableAutoUpdate();
  myColleciton.refresh(); // just to be sure

  I have it working fine with the itemUpdated and refresh. I usually
  don't bother with the auto update stuff - but it might be needed for
  your scenario. From what I understand, refresh() should always cause
  a data binding event for the TileList to update it's data.

  good luck,

  jon


  On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote:

  Hello all,
 
  I have a TileList binded to an ArrayCollection.
 
  If I add more items to the ArrayCollection the TileList updates, but if
  I try to change an already existing item in the ArrayCollection, the
  TileList doesn't change.
 
  I tried with List component and I don't have this problem, the view is
  correctly updated.
 
  Is there something I'm doing wrong or not doing :) ?
 
  Thank you for your response


 
 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918


RE: [flexcoders] TileList Binding Issue

2007-09-12 Thread Alex Harui
Wow.  If you can post a mini-example, we can take a look.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Marchbanks
Sent: Wednesday, September 12, 2007 1:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TileList Binding Issue

 

I ran into the same issue and never was able to resolve it. The only way
I could 
force the TileList to refresh was to force it to re- render using a
resize 
effect. - made the list 0 width and then resize reversed back to
original width.

I was using drag and drop to populate one TileList from another and then
editing 
items in the new list.

None of the suggestions from several experts made any difference.

Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com http://www.alQemy.com 

::: magazooms ::: digital magazines
http://www.magazooms.com http://www.magazooms.com 

Greenville, SC
864.284.9918

Alex Harui wrote:
 
 
 Do you have a custom renderer? Maybe you can post its code.
 
 
 
 --
 
 *From:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] 
 *On Behalf Of *Adnan Doric
 *Sent:* Wednesday, September 12, 2007 12:37 PM
 *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

 *Subject:* Re: [flexcoders] TileList Binding Issue
 
 
 
 I tried this with no success, my TileList items are still not updated.
 Maybe something is broken in TileList binding.
 
 Thank you :)
 
 Jon Bradley wrote:
 Something like the following process:

 myCollection.enableAutoUpdate();
 myCollection.itemUpdated(someItem,
 someProperty,someOldValue,someNewValue);
 myCollection.disableAutoUpdate();
 myColleciton.refresh(); // just to be sure

 I have it working fine with the itemUpdated and refresh. I usually
 don't bother with the auto update stuff - but it might be needed for
 your scenario. From what I understand, refresh() should always cause
 a data binding event for the TileList to update it's data.

 good luck,

 jon


 On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote:

  Hello all,
 
  I have a TileList binded to an ArrayCollection.
 
  If I add more items to the ArrayCollection the TileList updates,
but if
  I try to change an already existing item in the ArrayCollection,
the
  TileList doesn't change.
 
  I tried with List component and I don't have this problem, the view
is
  correctly updated.
 
  Is there something I'm doing wrong or not doing :) ?
 
  Thank you for your response


 
 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com http://www.alQemy.com 

::: magazooms ::: digital magazines
http://www.magazooms.com http://www.magazooms.com 

Greenville, SC
864.284.9918