Hello and thanks for reading this !!!

I am using a TileList with a FilterFunction on the dataprovider which
is an XMLListCollection.


  <mx:TileList id="productTiles" dragEnabled="true"
dragMoveEnabled="false"                  
                        height="100%" width="100%"  useRollOver="false"
                        fontStyle="normal" 
                        columnCount="{m_columCount}" rowCount="{m_rowCount}"
                        selectionColor="WHITE"
                        direction="horizontal"  borderThickness="0"
                        itemRenderer="ProductRenderer"
                        dataProvider="{m_products}" 
                        allowMultipleSelection="false"
                        />              


And my Filter Function is:

private function searchDemo(item:Object):Boolean{
                
               var src:String = filterText.text;
               var dst:String = XML(item).toXMLString();
               
               var isMatch:Boolean = false
               
               if(dst.toLocaleLowerCase().search(src.toLowerCase()) !=
-1){
                   isMatch = true
               }               
               return isMatch;               
           }


The problem is when I type text in a Text Entry Box the TileList
shrinks to show the matched string ( which is good )

HOWEVER, When I start dragging a Tile Item the faded Icon is of the
wrong image as if the TileList did not fully update the XMLList
collection or something.

Is there something I need to do in order to tell my TileList the the
data provider ( XMLListCollection ) is filtered ?

I do execute the refresh() on my FilterFunction and all seem ok only
that when starting to drag items from the filtered TileList does not
work correctly ...

Please Help...

Thanks again,

Sean.


Reply via email to