Hi,
I have a scenario where in the DataGrid after selecting the first row, hold the select click and move mouse over to the next rows so that the next rows will be added to the selection.
Is this possible?
Thanks,
Manikanta Vundavalli
Hello,
I have been looking into your question and what I could say is that by design selecting a range of rows is enabled via the Click + Space combination. Changing the default selection behavior should be implemented entirely on application level and could potentially have some side effects on the current implementation.
I have prepared a small sample in order to demonstrate a possible approach to achieve your requirement. The first step is to disable the selection on row click via the exposed selectRowOnClick property. After that, you should handle the pointerdown, pointerup and mouseover events and implement the required behavior. Also, in order to prevent the default behavior on click, you should cancel the rowSelectionChanging event.
Here could be found my sample for your reference. However, please keep in mind that overriding the default selection behavior should be implemented entirely on application and could be considered beyond the scope of Infragistics support. The suggested approach is just a simple demonstration, it is not fully tested and could not behave as expected in all scenarios.
Let me know if I may be of any further assistance.
Sincerely,Teodosia HristodorovaSoftware Developer
In the above mentioned sample when we add the drag and drop functionality to the grid ([rowDraggable]="true"),
After selecting the multiple rows as we click on drag icon to drag the rows only the drag icon selected row is selected and other rows that were selected gets deselected.
Is this the side effect of implementing the pointer and mouse over events by disabling the row selection
and is there any event for click and mouse over?