Hi,
we have a request from our users to select all records in a xamDataGrid with one single click.We found a post on this on the forum http://ko.infragistics.com/community/forums/p/69167/353123.aspx#353123 to be able to do this, however if there are many records in the grid (+/- 2000) this solution is VERY SLOW !
The grid supports this functionality by selecting the first record and then clicking SHIFT + CTRL + END. This works fast (as expected), but the users would prefer CTRL+A shortcut and an extra button in the user interface.Thanks for helping us on this!
Hello,
I have the same issue here. Control+A should select all rows.
I did this as suggested in another post with InputBinding and my own SelectAllCommand.
But this is very slow: 3000 Records takes 6 seconds while ctrl+shift+End take less than one second.
I reduce the affected source to these line of code:
var dataRecords = xamDataGrid.Records.OfType<DataRecord>().Where(dr => !dr.IsFilteredOut.GetValueOrDefault()).ToList(); foreach (var dataRecord in dataRecords) { dataRecord.IsSelected = true; }
Getting the datarecords is fast, but setting the selection takes a lot of time.
How could I improve this?
Regards
Markus
Btw: the standard datagrid has the ctrl+A shortcut by default and my customer did use this. Now I have switched to infragistics and this behavior is missing.
I was wondering if you had a chance to review the documentation and if you had further questions.
Please let me know if there is anything more that I can help with.
You could use SHIFT + Page Down or Page Up to select multiple records. If you have selected a record and use SHIFT + Page Down, you will select all of the records to the end of the grid.
This documentation provides more detail on behaviors.
http://help.infragistics.com/NetAdvantage/WPF/2012.1/CLR4.0/?page=xamDataPresenter_Keyboard_Navigation_in_xamDataPresenter.html
Please let me know if you have any questions.