Global Directory
Global Directory
EXPLORE OUR SITES
London Stock Exchange Group
LSEG Data & Analytics
MyAccount
LSEG Perspectives
London Stock Exchange
FTSE Russell
LCH
Contact Us
Home
TR Internal
how to copy cell text in ng-grid in javascript
Kashif Inam
I am using ng-grid in my angular application and wanted to know if user can copy text shown in cell.
Like, if we are showing SQL query in one column and user wanted to copy that query.
I appreciate your response, thanks
Find more posts tagged with
javascript
angular
refinitiv-internal
Accepted answers
All comments
Josh Harris
Doesn't look like it is currently possible. They mention putting the cell in edit mode, but that's about it.
[
https://github.com/angular-ui/ng-grid/issues/2186][1]
[1]:
https://github.com/angular-ui/ng-grid/issues/2186
Edit: This is possible based on Matt's answer there is a enableHighlighting option. The issue I posted was about programmatically copying cell values to the clip board.
Matt Schroeder
It looks like there may be an 'enableHighlighting' property that can be set to *true*
https://github.com/angular-ui/ng-grid/issues/460
Example:
http://jsfiddle.net/qcLLLa6s/1/
Kashif Inam
Thanks, it works for me, but we have to override some css coming from Eikon Web UI....
Quick Links
All Forums
Recent Questions
Terms of use
Privacy & Cookie Statement
Cookies settings
Do not sell my info
Whistleblowing
UK Bribery Act
Modern Slavery Act