Mar 26, 2013, 12:53 PM
[CLOSED] How to loop through grouped grid with checkboxselectionmodel
Hi
I have a grid that displays groups. I am using a checkboxselectionmodel.
When I check ALL records, my delete method just deletes all selected rows in the first group, even if records in other groups are checked as well
Second question, is there any way to give group headers a checkbox as well in order to select/unselect all items from a group? I am using a menuitem in a groupcommand right now, but it is a bit ugly because every button is on a different position dependant upon the length of the group name, so I would need something on the left side just next to the expanding '+' icon
I have a grid that displays groups. I am using a checkboxselectionmodel.
When I check ALL records, my delete method just deletes all selected rows in the first group, even if records in other groups are checked as well
Dim sm As RowSelectionModel = TryCast(Me.GridPanelTasks.GetSelectionModel(), RowSelectionModel)
Dim idList As New List(Of Long)
For Each row As SelectedRow In sm.SelectedRows
idList.Add(CLng(row.RecordID))
Next
// delete all records in idList
Sorry couldnt find something in the demos, so how do I need to alter my for each in order to include ALL groups and not just the first oneSecond question, is there any way to give group headers a checkbox as well in order to select/unselect all items from a group? I am using a menuitem in a groupcommand right now, but it is a bit ugly because every button is on a different position dependant upon the length of the group name, so I would need something on the left side just next to the expanding '+' icon
Last edited by Daniil; Mar 28, 2013 at 12:58 PM.
Reason: [CLOSED]