This is a migrated thread and some comments may be shown as answers.

Text selection disable.

14 Answers 542 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Efi
Top achievements
Rank 1
Efi asked on 13 Jul 2014, 09:22 AM
After usage of a grid in our page all text selection is disabled.
you can test this out in "http://demos.telerik.com/kendo-ui/grid/selection" by trying to select the header after selecting a row in the grid.

step by step:
1 - open page.
2 - try select the text(for example the "Grid / Selection" header, with the mouse) - the text can be selected.
3 - click on some row in the grid.
4 - try select the text(for example the "Grid / Selection" header, with the mouse) - the text can NOT be selected. from this step NONE of the text in the page cannot be selected.

14 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 15 Jul 2014, 11:20 AM
Hello Efi,

This issue has already been fixed and changes will take effect in the Q2 release, which is due this week.

http://demos.telerik.com/kendo-ui/beta/grid/selection

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Efi
Top achievements
Rank 1
answered on 15 Jul 2014, 11:34 AM
can you point us to a fix we can do in code? (patch)

we cannot wait with the new version release + testing time that will be required when we upgrade kendo.

thank you!
0
Efi
Top achievements
Rank 1
answered on 15 Jul 2014, 11:35 AM
can we see the code that solves this issue?

we cannot wait another week for release + testing on our end..

thank you!
0
Dimo
Telerik team
answered on 15 Jul 2014, 12:39 PM
Hello Efi,

I am not able to provide isolated code of the discussed fix, but you can download the latest Kendo UI internal build (2014.1.624) from your account. It also works as expected.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Efi
Top achievements
Rank 1
answered on 15 Jul 2014, 01:27 PM

what is the URL for Kendo UI internal build (2014.1.624) ?
0
Dimo
Telerik team
answered on 16 Jul 2014, 11:50 AM
Hello Efi,

Latest internal builds are accessible via "Products & Subscriptions" at telerik.com. Please refer to the screenshot.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Marina
Top achievements
Rank 1
answered on 30 Jun 2016, 12:55 PM

We're using the latest Kendo UI version, and we're still seeing the same bug.

When multiple selection is enabled, it is impossible to select the text in the table.

We've tested this on Chrome, FireFox and IE, all with the same result.

0
Marina
Top achievements
Rank 1
answered on 30 Jun 2016, 12:57 PM

We're using the latest build, and it's still not working. It's simply impossible to select the text in the grid if multiple selection (of any kind) is enabled.

We're tested this on IE, Chrome and FF, with the same results in all of them.

 

0
Dimo
Telerik team
answered on 01 Jul 2016, 11:55 AM
Hello Marina,

The originally discussed issue in this thread is different.

Text selection in a Grid with multiple selection enabled is unfortunately not supported, because the Grid cannot know if the user wants to select text or select rows, when a dragging gesture starts.

If text selection is required, please consider using alternative row selection techniques, for example checkboxes:

http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Selection/grid-selection-checkbox

Regards,
Dimo
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Marina
Top achievements
Rank 1
answered on 03 Jul 2016, 06:37 AM

Unfortunately, this is not an acceptable solution for us. We require normal row selection (i.e. by clicking the row), as well as multiple row selection using the modifier keys (Ctrl, Shift).

What we don't require (or need in fact) is selection by dragging. Therefore, if you provide a way to disable selection by dragging it should solve our problem (since then text can be copied).

0
Dimo
Telerik team
answered on 04 Jul 2016, 10:47 AM
Hello Marina,

In this case, please execute the following after Grid initialization.

var uv = $("#Grid-ID").data("kendoGrid").selectable.userEvents;
uv.unbind("start");
uv.unbind("move");
uv.unbind("end");
uv.unbind("select");

Note that when using Shift+Click to select multiple rows, the browser will also display text selection inside the selected rows.

Regards,
Dimo
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Marina
Top achievements
Rank 1
answered on 09 Aug 2016, 09:19 AM

We tried that, but it caused a bug with inline editing. Clicking outside an inline editor closed the editor but did not accept the value anymore. We suspect that it's due to the removal of the "select" listener.

Can you please check that ? Thanks

0
Dimo
Telerik team
answered on 09 Aug 2016, 01:11 PM
Hello Marina,

I am not sure I understand what the problem is. Do you observe it on the following example? If yes, please outline the exact steps to perform.

http://dojo.telerik.com/abiKAh

Regards,
Dimo
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Patrick
Top achievements
Rank 1
answered on 28 Jun 2017, 08:55 AM

For my experience, I wanted to be able to select the text of the header in the Kendo Scheduler. The problem is that Kendo block text selection with javascript events. So the event propagation has to be stopped on element you want to make text selectable. For example to make time header selectable you can execute the following code in dataBound event of the widget declaration

dataBound: _=>{
$(".k-scheduler-times").on('selectstart mousedown mouseout mouseover', e=>{e.stopPropagation()})
}

Tags
Grid
Asked by
Efi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Efi
Top achievements
Rank 1
Marina
Top achievements
Rank 1
Patrick
Top achievements
Rank 1
Share this question
or