Need grid cell text selectable, but not editable.

In dhtmlxgrid, Is there a way to make the text in a cell selectable (for copy) but not editable?

Thanks.

The grid block all selection to prevent visual problems, but it may be re-enabled back by some modifications

  1. In dhtmlxgrid.css locate and erase all occurences of next line
    -moz-user-select:none;
  2. In grid initialization code add next command
    grid.entBox.onselectstart = function(){ return true; };

I modified the .css and added the command in grid initilization, but see no difference in behavior. I assume this should make cells tagged as ‘ro’ type selectable, correct?

Hi,

I have the same problem.
@Olga, may it have a solution?

Thank you!

Grid content will be selectable if:

  1. In dhtmlxgrid.css locate and erase all occurences of next line
    -moz-user-select:none;
    and -moz-user-select:-moz-none;
  2. In grid initialization code add next command
    grid.entBox.onselectstart = function(){ return true; };

There’s actually one more way to resolve this.
It strictly speaking doesn’t make the text selectable though, only copyable but not editable.

Which is to attach an onEditCell event listener that always returns false in the case that stage is > 0.