Details

I have an instance of AdvancedDataGrid with a contextMenu that allows users to input additional data which is combined with data in selected row and persisted to the database. The dataProvider for this AdvancedDataGrid is an ArrayCollection, populated from a remote call made at this component's creationComplete event. </p> I'm trying to extend this functionality and allow users to select multiple records. I have set allowMultipleSelection="true" and selectionMode="multipleRows". In the contextMenu.Menu_Item_Select event, I am copying AdvancedDataGrid.selectedCells into an array, looping over this array, getting rowIndex property for each selected cell and calling getItemAt(rowIndex) for the ArrayList that is the dataProvider for this AdvancedDataGrid. It works only about 75% of the time. I was expecting that the rowIndex values in selectedCells would reliably match displayed records in AdvancedDataGrid with data records in dataProvider. Have found that to only be the case 'most' of the times. Many Thanks

Use the RSS button to subscribe to comments for this request.

close this
Interested in seeing a response to this question? Vote for it!
Vote (1 vote)
Report abuse

Related recipes