Spreadsheet Hyperlink Wrong Hyperlink Window

3 posts, 1 answers
  1. Kate
    Kate avatar
    17 posts
    Member since:
    Jul 2010

    Posted 03 Oct 2014 Link to this post

    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. Answer
    Anna
    Admin
    Anna avatar
    99 posts

    Posted 06 Oct 2014 Link to this post

    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.
     
  3. DevCraft banner
  4. Kate
    Kate avatar
    17 posts
    Member since:
    Jul 2010

    Posted 06 Oct 2014 Link to this post

    Thank you! We should update our product version.
Back to Top