# Opening a dialog box from link instead of button

**URL:** <https://forum.radzen.com/t/opening-a-dialog-box-from-link-instead-of-button/5253>\
**Category:** Blazor Server\
**Created:** [October 9, 2020, 2:55pm UTC](https://forum.radzen.com/t/opening-a-dialog-box-from-link-instead-of-button/5253 "2020-10-09T14:55:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jserwatien](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/ec9cab/32.png) [@jserwatien](https://forum.radzen.com/u/jserwatien)\
**Post date:** [October 9, 2020, 2:55pm UTC](https://forum.radzen.com/t/opening-a-dialog-box-from-link-instead-of-button/5253/1 "2020-10-09T14:55:49Z")

</div>

Good morning. I'm trying to open a dialog box from a link instead of a button. Is there an example of this? I tried dropping a Radzen link and using the @onclick event but the link doesn't render on the page. Thanks

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [October 12, 2020, 5:51am UTC](https://forum.radzen.com/t/opening-a-dialog-box-from-link-instead-of-button/5253/2 "2020-10-12T05:51:33Z")

</div>

Try the following:

 ![image](https://forum.radzen.com/uploads/default/original/2X/5/5057a8d805917b49c0ba34d7d8f4f4f4072af4c0.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/4/46ec8e7a4ec4d7ac791141af8f2ed40b36f96afe.png)

---

<div class="post-metadata">

**Author:** ![jserwatien](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/ec9cab/32.png) [@jserwatien](https://forum.radzen.com/u/jserwatien)\
**Post date:** [October 12, 2020, 7:01pm UTC](https://forum.radzen.com/t/opening-a-dialog-box-from-link-instead-of-button/5253/3 "2020-10-12T19:01:40Z")

</div>

Hi. Thanks for your response. I'm trying to use HTML as the link text, but it doesn't like it. Something like this:

```auto
 <RadzenLink Click="@(args => dialogService.Open<LogicaRatio.WebUI.Pages.Popups.PlaintiffEditPopup>($"Edit Plaintiff {newItem.LitigantName}",
                        new Dictionary<string, object>() { { "CaseKey", theCase.Cases[0].CaseKey }, { "TheLitigant", newItem } },
                        new DialogOptions(){ Width = "700px", Height = "400px" }))">
<i class="fa fa-pencil-square-o" aria-hidden="true"></i></RadzenLink>

```

Thanks!

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [October 13, 2020, 7:54am UTC](https://forum.radzen.com/t/opening-a-dialog-box-from-link-instead-of-button/5253/4 "2020-10-13T07:54:37Z")

</div>

Hi @jserwatien,

> [@jserwatien](#):
>
> I'm trying to use HTML as the link text, but it doesn't like it

The RadzenLink does not support HTML content. You can use a regular `<a>` element if you need that.

---

<div class="post-metadata">

**Author:** ![jserwatien](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/ec9cab/32.png) [@jserwatien](https://forum.radzen.com/u/jserwatien)\
**Post date:** [October 13, 2020, 1:20pm UTC](https://forum.radzen.com/t/opening-a-dialog-box-from-link-instead-of-button/5253/5 "2020-10-13T13:20:48Z")

</div>

But how would I call the function?
