Navigate to external page from button

I have created a button within a datagrid which I would like to invoke an external web page in a new browser tab. I have created the button and on the "click" event I have invoked a custom method that returns the full URL for the external page. For now I am only displaying the URL in a notification. How can I use the returned ${result} which contains the URL to open a new tab and go to the URL?

You need to use JS to do that - namely the open function of the window object. You can do so via the Execute C# action in Radzen - set Code to await JSRuntime.InvokeVoidAsync("open", ${result}, "_blank");. Something like this:

1 Like

Thanks. That worked perfectly!