Links in datagrid

Folks,

how can i add links to a datagrid? i've tried adding a template but i can't get the URL to pupulate for the data. I also need the link to open a new window or in the case of an email open the email editor.

Any suggestions?

thanks

John

You need to use a template indeed. Something like

<a href="@($"http://www.example.com/{data.Property}")">link text</a>

where data is the template context.

Korchev,
Thanks, i've tried putting this into the path but the application throws an error

[2020-04-14 16:37:14.413] [error] C:\Program Files\Radzen\resources\node_modules@radzen\blazor-server\dist\templates\page.razor.ejs:42
40| <%_ } %>
41| <%
components.forEach(component => { _%>

42| <%- env.renderBlazorComponent(false, component, application, {}) %>
43| <%_ }) %>
44| <%
if(application.security && application.security.loginPage == name) { _%>
45|

pathParameters.value.replace is not a function

Thanks, i've tried putting this into the path but the application throws an error

You should not put it in the path. This should be set as the value of the Template property.

I can't see a field for the value
image



Vladimir,

many thanks for this

John