Disable text selection for telerik grid

1 Answer 298 Views
Grid
Anthony
Top achievements
Rank 1
Iron
Anthony asked on 19 Jun 2023, 02:44 PM

Is there a way to disable text selection.

I tried adding this css class 

.disable-selection {
    user-select: none;
}

on the <TelerikGrid/> level but I can still highlight text.

1 Answer, 1 is accepted

Sort by
0
Anthony
Top achievements
Rank 1
Iron
answered on 19 Jun 2023, 07:59 PM

Feeling a little stupid I just had to wrap it in a div.

 

<div class="disable-selection>

 <TelerikGrid ..../>

</div>

Tags
Grid
Asked by
Anthony
Top achievements
Rank 1
Iron
Answers by
Anthony
Top achievements
Rank 1
Iron
Share this question
or