Cell Format Overview
As from R3 2016 RadSpreadsheet provides the ability to define hyperlink for its cells content.
You can define a hyperlink for a given cell in two ways:
-
Using the ToolbarTab(see Figure 1), which will prompt you with a popup, where you can set the needed url (see Figure 2)
Figure 1:
Figure 2:
From the popup, you can also remove a hyperlink, using the Remove link button.
-
Programatically, using the Client API of the RadSpreadsheet and the SpreadsheetRange object.
function setHyperlink() { var spreadsheet = $find("<%= RadSpreadsheet1.ClientID %>"); var activeSheet = spreadsheet.get_activeSheet(); var singleCellRange = activeSheet.get_range("B3") singleCellRange.set_link("www.telerik.com"); } ````
See Also