Dec 04, 2012, 3:10 AM
SelectedRows of GridPanel does not work when RowSelectionModel is Multi.
<ext:GridPanel ID="gpRoleUsers" runat="server" ColumnWidth="0.7" Flex="1">
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel2" runat="server" Mode="Multi" />
</SelectionModel>
</ext:GridPanel>
RowSelectionModel sm = gpRoleUsers.GetSelectionModel() as RowSelectionModel;
foreach (SelectedRow row in sm.SelectedRows)
{......}
The problem is described as below:If the mode of RowSelectionModel is "Single", everything is OK. If the mode of RowSlectionModel is "Multi", I select one record at the first, then delete it, it's OK. And I select another record, then delete it again, the problem comes out. The selectedRows include 2 records (the current seleced record + the delete record).
Attention: this problem only exists when the mode of RowSelectionModel is "Multi", and it will disapear when the mode of RowSelectionModel is "Single".
Is this a bug or due to my code? Does anybody meet the same problem?
Last edited by Santon_Lee; Dec 04, 2012 at 3:13 AM.