On 10/10/05, Allen Manning <[EMAIL PROTECTED]> wrote:

> <mx:DataGrid
>
> …
>
> selectedIndex=" { helper.getSelectedIndexInDatagrid( 
> mFilterProvider.filteredData ) }"

>
> 'filteredData' is a property of my filtering data provider.  I databind to 
> that so that the function gets called as the data comes in from the server 
> side, or when client – side filtering happens.

[...]

> The data loads, the first item is selected and the selecteItem property of 
> the view gets populated.  If I try to select another row in the datagrid, the 
> 0th selected row stays selected.  Two rows highlighted at the same time.  
> Note: the mutlipleSelect property is not set to true.  I move my mouse over 
> the 0th row and the selection disappears and all acts like normal.

Are you using the FilteredDataProvider class that I had written? 
Sorry I've been so bad at supporting this.  People have reported
problems with DataGrid selection when a FilteredDataprovider is used. 
I don't have time to look into it right away, but here's a hint: you
might want to look into the DataProvider class (which
FilteredDataProvider extends).  Last time I fixed a problem by
overriding the getItemID method from the API, so see if that works for
you.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/
 

Reply via email to