Allow selecting text in a WjFlexGrid without enabling cell selection

Posted by: ken on 21 May 2020, 5:39 am EST

  • Posted 21 May 2020, 5:39 am EST

    When I make a grid with selectionMode="None" it prevents me from selecting any text in the cells. Looking at the styles, I see it's setting user-select: none (along with all the vendor-specific versions). I tried to override it in my own CSS like this:

    .wj-control {
    -webkit-touch-callout: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    }


    And when I inspect it in the console, it shows my styles as active, but I still can't select any text. Oddly, using "all" instead of "text" does work, but that isn't the functionality I want.

    What do I need to do to enable it?
  • Replied 21 May 2020, 5:19 pm EST

    Hi,

    As per our understanding, your requirement is to select the text in the grid instead of cells. Please refer to the sample link below and let us know if our understanding is correct:

    https://jsfiddle.net/Wijmo5/bmy924f7/

    Regards,
    Ashwin
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels