Extracting and Activating 'a href' Links in RadDesktopAlert Content

1 Answer 41 Views
Accessibility
Pawel
Top achievements
Rank 1
Iron
Pawel asked on 09 Aug 2023, 12:18 PM | edited on 09 Aug 2023, 12:25 PM

How do I parse an 'a href' tag in RadDesktopAlert content so that, after clicking the link, the page will open?

Br

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 09 Aug 2023, 12:28 PM

Hi, Pawel,

You can use the HTML-like text formatting functionality and show a hyperlink which out of the box opens the page in the browser after clicking. I have prepared a sample code snippet for your reference:

            this.radDesktopAlert1.CaptionText = "New E-mail Notification";
            this.radDesktopAlert1.ContentText = "<html><size=12><a href=www.telerik.com>Telerik</a>";
            this.radDesktopAlert1.Show();

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Pawel
Top achievements
Rank 1
Iron
commented on 09 Aug 2023, 12:31 PM

Hi Dess,

I followed your instructions, but I'm encountering an issue. When I click on the text 'Telerik,' the page and browser do not open.

Do you have any ideas on how to fix this?

Best regards,
Dess | Tech Support Engineer, Principal
Telerik team
commented on 09 Aug 2023, 12:55 PM

Hi, Pawel,

The page is opened as expected on my end. Please refer to the attached gif file illustrating the behavior on my end with the specified version. I have attached my sample project. Please give it a try and see how it works on your end. Am I missing something? Could you please specify the exact steps how to reproduce the problem?

I am looking forward to your reply.
Pawel
Top achievements
Rank 1
Iron
commented on 09 Aug 2023, 01:02 PM

Hi Dess,

Thanks, it looks like it was a problem with default apps (in my case it did not work with Brave but it works with Chrome).

Thank you and best regards,

Pawel
Tags
Accessibility
Asked by
Pawel
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or