
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Robert Madrian
asked on 03 Apr 2019, 01:21 PM
Hello,
if I set .Selectable(s => s.Mode(GridSelectionMode.Multiple)) I cannot select a text in a grid cell for copy - why?
is this by design and if yes, is there a workaround?
robert
4 Answers, 1 is accepted
0
Hello Robert,
By default when multiple row selection is enabled in the Grid it is possible for the users to select more than one row by dragging. In this scenario there is no way to detect when the users want to select multiple rows or just the text in the Grid. This is why text selection is not available with this setup.
In order to keep the ability to select multiple rows and also enable text selection in the Grid I would suggest using checkbox selection. With this feature the users will be able to select rows by clicking the respective checkbox. Check out the example below that illustrates the functionality:
Regards,
Viktor Tachev
Progress Telerik
By default when multiple row selection is enabled in the Grid it is possible for the users to select more than one row by dragging. In this scenario there is no way to detect when the users want to select multiple rows or just the text in the Grid. This is why text selection is not available with this setup.
In order to keep the ability to select multiple rows and also enable text selection in the Grid I would suggest using checkbox selection. With this feature the users will be able to select rows by clicking the respective checkbox. Check out the example below that illustrates the functionality:
Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0

Robert Madrian
Top achievements
Rank 1
Veteran
Iron
answered on 08 Apr 2019, 10:13 AM
Ok thanks - but checkbox selection is not an option…
robert
0
Hello Robert,
If you prefer not using checkbex selection I would suggest disabling the built-in selection and applying the k-state-selected CSS class manually to the Grid rows on click. The approach is described in the thread below:
Give it a try and let me know how it works for you.
Regards,
Viktor Tachev
Progress Telerik
If you prefer not using checkbex selection I would suggest disabling the built-in selection and applying the k-state-selected CSS class manually to the Grid rows on click. The approach is described in the thread below:
Give it a try and let me know how it works for you.
Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0

Robert Madrian
Top achievements
Rank 1
Veteran
Iron
answered on 11 Apr 2019, 08:29 AM
Thanks