Hi,
I would like to be able to select multiple cells using shift key and a click. This works completely fine when I set CellClickAction="SelectCell". However I need CellClickAction="EnterEditModeIfAllowed". The behaviour I now see is that I click into a cell and it becomes editable. I then hold down shift and click into another cell. Instead of selecting all the cells in a row, it just selects that one cell. To select all of them I then need to select the original cell while holding shift. Is there any obvious way around this?
Thanks,
Alastair
<dataPresenter:FieldLayoutSettings AllowClipboardOperations="All" SelectionTypeRecord="ExtendedAutoDrag" SelectionTypeCell="Extended"> </dataPresenter:FieldLayoutSettings> </dataPresenter:XamDataGrid.FieldLayoutSettings> <dataPresenter:XamDataGrid.FieldSettings> <dataPresenter:FieldSettings CellClickAction="EnterEditModeIfAllowed" /> </dataPresenter:XamDataGrid.FieldSettings>
Hello Alastair,
After working on this and doing some research, Multiple Cell selection while CellClickAction="EnterEditModeIfAllowed" has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
Hi Stefan,
Thanks for your reply. I have submitted the idea. However for now can you think of any way around this? I guess I could manually intercept the click and check if shift is held down and if so add the cells to the selected cells list?
You can handle the XamDataGrid's PreviewMouseLeftButtonDown event and check if the Shift key is pressed in the handler. After doing this you should manually add the cells. Please note that you should check if the new selected cell is on the right, left above or below the first selected cell, so you know how to iterate the records and cells.