Add/Remove Hyperlinks From Client Side

Contents
[ ]

Aspose.Cells GridWeb now supports adding and removing hyperlinks from client side. For this, the API provides the “addCelllink” and “delCelllink” functions. The following code snippets demonstrates adding and removing hyperlinks from client side in GridWeb.

Sample Code

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
<script>
function addLink() {
var linkinfo={};
linkinfo.url="http://www.aspose.com",
linkinfo.text="Link to Aspose Webbsite",
gridwebinstance.getByIndex(0).rangeupdate(addCelllink,linkinfo);
}
function removeLink() {
gridwebinstance.getByIndex(0).rangeupdate(delCelllink);
}
</script>

You may also link to sheet using the following code snippet.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
linkinfo.url="Sheet4!B8",
linkinfo.text="link to sheet4 B8",
linkinfo.targetsheetindex= 8,
linkinfo.targetcellname="B8"