Hey guys, I currently have a grid that outputs values from a database within a grid. This works well however I have one field that contains sets of Url's. This is currently output as text.
Is there anyway to make it a href/link or can you only output text within the grid?
7 Answers, 1 is accepted
This was just one example of rendering an HTML link inside the grid cell. You can alter it as needed (e.g., to use an actual anchor, without a markup string cast), or to add a class to it that will provide the desired appearance (like altering the color and adding some underlining). This is entirely up to your preferences, the template lets you put the desired content in it. You may also find this KB article useful on altering the cell background.
I am doing this with a mailto link, however I also have Selection Turned on for the grid.
The link works to open an email but I need to stop the row selection as it is causing an error.
Is there any way to have the link work as a link when clicked on but have row selection work for anything else clicked on in the row?
You can stop the event propagation in the template to prevent selection, you can see an example here: https://docs.telerik.com/blazor-ui/components/grid/selection/overview#selection-in-template