I have a xamdatagrid that uses checkboxes for multi-selections. I can get it to work however whenever the user will click the scrollbar or filter the selected items disappear. Is there a way I can preserve the selected items? Or has there been a fix for it yet?
Hi dvickerie,
Let me know if you have any further questions on this issue.
Let me know if you have any further questions.
Many thanks for your quickly reply.
Issue was resolved as I found the code in the project where right click was restricted to ctrl and shift key, commenting that part has resolved the issue.
@ dvickerie,
I think in the case when the user clicks on a 'Select All' button that it might just be better to loop through XamDataGrid.Records instead of XamDataGrid.SelectedItems.Cells. You're not going to be able to completely avoid looping through cells/records though. Here is a code snippet of what I mean.
if (SelectAll) { foreach (Record rec in xamDataGrid1.Records) { (rec.DataItem as MyDataItem).RecordSelected = true; } } else { foreach (Cell cell in XamDataGrid1.SelectedItems.Cells) { (cell.Record.DataItem as MyDataItem).RecordSelected = true; } }
@ Kartik,
For multiple selection I think you want to use SelectionTypeRecord = "Extended". Do you mean that when you right click that you are losing your selected records? This shouldn't be the case as I've tested this and after selecting multiple rows, right-clicking does not clear or modify the currently selected records. Which version of NetAdvantage are you using?
HI,
We are facing one issue with XamDataGrid.
User Action - User goes to particular screen do select multiple rows and then right click to do some action on them.
Problem description: User is required to hold control or shift key to select multiple record if he does not select these control then after right click few records are left selected.
From our side we have set SelectionTypeField = "Extended", Please help us to solve this issue as this some time really annoying for the end user.
Please note similar action works perfectly in WinGrid.
Thanks
Kartik Chhabra