Passing data through RadzenLink

Hello,

is there any way to pass data using RadzenLink? I am using RadzenDataGrid and need to pass ID of the record to new page, where the details will be displayed.

Unfortunately didnt find any useful info.

I am not using RadzenStudio because of my project is integrated to our company solution.

You can define desired url to Path:

<RadzenLink Path="https://www.google.com/search?q=radzen" Text="Go to url" target="_blank" />

Yes, but that is hard coded static parameter. I need to use the dynamic parameter from dbContext. This does not work:

You don't know how to format strings in C#? Here is it:

<div class="rz-p-12 rz-text-align-center">
    <RadzenLink Path="@($"https://www.google.com/search?q={myParam}")" Text="Go to url" target="_blank" />
</div>

@code {
    Guid myParam = Guid.NewGuid(); 
}
1 Like