This is a migrated thread and some comments may be shown as answers.

Spreadsheet Hyperlink Wrong Hyperlink Window

2 Answers 60 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Kate
Top achievements
Rank 1
Kate asked on 03 Oct 2014, 07:47 AM
Hello! I have a problem with Spreadsheet Hyperlink. We use it to open our own objects, and every time we click such hyperlinks, spreadsheet shows a wrong hyperlink window. How can I override OpenHyperlink function (as I did it with the RadRichText control), or just hide the wrong hyperlink window?

2 Answers, 1 is accepted

Sort by
0
Accepted
Anna
Telerik team
answered on 06 Oct 2014, 10:55 AM
Hi,

You can easily suppress the alert by using the MessageShowing event of the RadSpreadsheet class. The following snippet hides the alerts containing a message about wrong address of the hyperlink or about a wrong reference:

private void RadSpreadsheet_MessageShowing(object sender, MessageShowingEventArgs e)
{
    string hyperlinkError = LocalizationManager.GetString("Spreadsheet_MessageBox_InvalidUriDescription");
    string referenceError = LocalizationManager.GetString("Spreadsheet_MessageBox_InvalidReferenceDescription");
 
    if (e.Content.Equals(hyperlinkError, StringComparison.CurrentCulture) ||
        e.Content.Equals(referenceError, StringComparison.CurrentCulture))
    {
        e.IsHandled = true;
    }
}


Regards,
Anna
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Kate
Top achievements
Rank 1
answered on 06 Oct 2014, 01:17 PM
Thank you! We should update our product version.
Tags
Spreadsheet
Asked by
Kate
Top achievements
Rank 1
Answers by
Anna
Telerik team
Kate
Top achievements
Rank 1
Share this question
or