I have a simple RadGridView (selection mode is Extended) that has its own RadContextMenu. Currently, left clicking selects rows while also taking into consideration modifier keys (i.e. holding Control will allow for multiple independent selections, as well as individual deselection). Right clicking will open a context menu.
What I would like to have is that right clicking would function almost identically to left clicking, while still opening the context menu. So far, I have modified the RadContextMenu.Opened event handler to select the row that was right clicked (and I even have it intelligent enough to deselect the other rows if the newly clicked row wasn't previously selected).
What I still need is a way to incorporate Shift and Control into the mix, but I haven't seen any way to identify that these keys are being pressed at the same time as the click. The only thing I can come up with is subscribing the grid to a key press handler that flags global boolean variables that I can check inside of the Opened event handler. I'd rather not do this, since this might also require special logic for selecting rows when Shift is held. A simple solution would be much appreciated.
What I would like to have is that right clicking would function almost identically to left clicking, while still opening the context menu. So far, I have modified the RadContextMenu.Opened event handler to select the row that was right clicked (and I even have it intelligent enough to deselect the other rows if the newly clicked row wasn't previously selected).
What I still need is a way to incorporate Shift and Control into the mix, but I haven't seen any way to identify that these keys are being pressed at the same time as the click. The only thing I can come up with is subscribing the grid to a key press handler that flags global boolean variables that I can check inside of the Opened event handler. I'd rather not do this, since this might also require special logic for selecting rows when Shift is held. A simple solution would be much appreciated.