[flexcoders] Re: ClassFactory, properties, itemrenderers and changing prop dynamically

2011-09-22 Thread valdhor
I don't know about others here but IMHO a better user experience would be to 
remove the selected item from the source list. This way it is not even there to 
be selected. Just a simple matter of removing it from the dataprovider.

--- In flexcoders@yahoogroups.com, grimmwerks grimm@... wrote:

 Here's another convoluted question -- I've got a list that is bound to an 
 array of a certain Class - let's cal them Permissions.  In the Permissions 
 class you've got userId, read and write (booleans there, id for userId, 
 normal stuff).
 
 I'm using the same itemrenderer in two lists - a source list which is not 
 editable and a drop list which is;  the itemrenderer has an 'editable' 
 variable and I'm setting each list's ClassFactory to this same itemrenderer, 
 with one ClassFactory's properties setting editable to false, one to true.  
 All that is good.
 
 Now the strange request I JUST had from someone here is that once an item is 
 dragged and dropped from the source list to the drop list, the item in the 
 source list should dim to show that it's already been chosen, unable to 
 choose again.   I've created a property called itemEnabled in the 
 itemrenderer, defaulting to true (so it's ignored in the droplist basically).
 
 Here's the thing; it would be simple enough to set a particular item's 
 'itemenabled' property in the dataproviider and it would trickle down; but 
 since this is a list of cast objects that don't have the itemEnabled property 
 it's a no go...
 
 So is there a way of selecting an itemrenderer or item at a certain position 
 in the sourcelist and setting IT's itemEnabled to false? Is it something with 
 the classfactory for a specific item?
 
 
 Garry Schafer
 grimmwerks
 grimm@...
 portfolio: www.grimmwerks.com/





Re: [flexcoders] Re: ClassFactory, properties, itemrenderers and changing prop dynamically

2011-09-22 Thread grimmwerks
I hear you - but the thing is these are more CHOICES that one can make - like a 
menu of items.  If one can only get a hamburger it's not the only hamburger the 
store has...


On Sep 22, 2011, at 3:08 PM, valdhor wrote:

 I don't know about others here but IMHO a better user experience would be to 
 remove the selected item from the source list. This way it is not even there 
 to be selected. Just a simple matter of removing it from the dataprovider.

Garry Schafer
grimmwerks
gr...@grimmwerks.com
portfolio: www.grimmwerks.com/