Bumping this... I'm surprised nobody else has come across this issue...

In order to get the selectedItems after setting selectedIndices, I have to perform the following?


var mySelectedIndices:Array = ["0", "5"];
var tmpArray:Array = new Array();

for(var i:Number = 0; i < mySelectedIndices.length; i++)
{
    var tmpObj:Object = myDataGrid.dataProvider.getItemAt(Number(mySelectedIndices[i]));
    tmpArray[i] = tmpObj;
}

myDataGrid.selectedItems = tmpArray;


Really?  Am I missing something here?


Brendan


On 7/10/06, Brendan Meutzner < [EMAIL PROTECTED]> wrote:
>
> Hi,
>
> When I set selectedIndices programmatically on a datagrid, it results in the proper rows becoming selected/highlighted, but does not affect the selectedItems property of the datagrid.  Is this normal behaviour?
>
>  
> Brendan
>  

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to