Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

ItemClick prevent user from selecting text in a grid row

Nono The bot
6 years ago Oct 16, 2015 4:47pm

Hi,

On Vaadin 7.5.5,
ItemClick prevent user from selecting text in a grid row.

It works fine with a table.

Arnaud
 

Nono The bot
6 years ago Nov 27, 2015 3:55pm

Hi

I'm surprised,
Nobody is interested to select text in a grid?
Or maybe it's a better idea to use a Table instead of ?

May I have an answer?
 

Tatu Lund
6 years ago Nov 30, 2015 6:27am

Actually it does not prevent user selecting the text. However in some cases the selection color setting do reset, so that you do not see the selection. If you do copy paste you will notice that it works.

Nono The bot
6 years ago Dec 01, 2015 10:53am

Thanks for the answer Tatu Lund.

But, It's not just a a color problem, It's a bug.
I thought the issue was linked with ItemClick but I'm not sure now.

You may try test a copy paste in the Vaadin sampler : http://demo.vaadin.com/sampler/#ui/grids-and-trees/grid/features
 ?

The behavior is very strange.
On IE, if you select a part of a cell, the full cell is copied.
On FF, you cannot copy a cell but if you select a couple of cells, it works.
 

Jorg Heymans
6 years ago Feb 19, 2016 1:23pm
Francisco Serrano
6 years ago Feb 19, 2016 4:51pm
Nono The bot
6 years ago Feb 23, 2016 3:51pm
Francisco Serrano
6 years ago Feb 23, 2016 4:16pm
Nono The bot
6 years ago Feb 23, 2016 5:21pm
Jorg Heymans
6 years ago Feb 24, 2016 11:59am
Nono The bot
6 years ago Feb 29, 2016 1:32pm
Tatu Lund
6 years ago Feb 29, 2016 1:54pm
Teemu Suo-Anttila
6 years ago Mar 03, 2016 11:25am
Nono The bot
6 years ago Mar 04, 2016 2:38pm
Nono The bot
5 years ago Apr 21, 2016 12:54pm
Teemu Suo-Anttila
5 years ago Apr 21, 2016 1:00pm
T Gergely
5 years ago Jun 23, 2016 10:24am

Teemu Suo-Anttila: if you first click on the cell you want to select text from and then start selecting after the outline is there, it should work fine.
 

That doesn't work for me in FF 47. Even if it did, it still would be awkward. Not releasing the mouse button works, but that's user-hostile, too.

ugo gioia
5 years ago Nov 30, 2016 1:30pm
Roman Heinrich
5 years ago Jan 20, 2017 1:41pm