Posted 23 March 2021, 5:02 am EST
Hi,
“CellClick” event not getting triggered when I click exactly on hyperlink in a cell.
Is there any way to trigger hyperlink?
Forums Home / Spread / SpreadJS
Posted by: amitha.thampy on 23 March 2021, 5:02 am EST
Posted 23 March 2021, 5:02 am EST
Hi,
“CellClick” event not getting triggered when I click exactly on hyperlink in a cell.
Is there any way to trigger hyperlink?
Posted 23 March 2021, 10:54 pm EST
Hi,
We are able to observe the issue at our end hence we have escalated this issue to the concerned team for further investigation. We will update you regarding this as soon as we get any information from the team. The internal ID for this issue will be SJS-8110.
Further, you may use setHyperLink method for the required functionality. Please refer to the following code snippet and attached sample that demonstrates the same.
sheet.setHyperlink(
1,
1,
{
url: url,
tooltip: "GrapeCity",
target: GC.Spread.Sheets.Hyperlink.HyperlinkTargetType.top,
drawUnderline: true,
command: () => {
alert("HyperLink Clicked");
window.open(url);
}
},
GC.Spread.Sheets.SheetArea.viewport
);
sample: https://codesandbox.io/s/spread-js-starter-forked-1iy79?file=/src/index.js
API References:
setHyperLink: https://www.grapecity.com/spreadjs/docs/v14/online/SpreadJS~GC.Spread.Sheets.Worksheet~setHyperlink.html
Regards
Avinash
Posted 26 March 2021, 11:05 pm EST
Hi,
The Devs informed us that this behavior is by Design. We are sorry for the inconvenience.
Regards,
Avinash