We have been using REST grids to show external data and this works fine. We now have a requirement for one of the columns to be a hyperlink and to also make the data in these grids to be selectable.
I have spent a while looking into this and I think there are various options, but all of which seem to be quite complicated and I can't help but feel that I am missing something obvious.
For example instead of rendering the REST Grid Widget as a Grid, I can render this as Tiles and then specify my own tile content to render a table row with an anchor tag within a table cell. This gives me my hyperlink but I lose all the extra functionality (column sorting, filtering, etc.) that comes with rendering as a grid.
After reading a similar forum post I have discovered that I might be able to intercept and modify the JSON data using an AddResultCallback and potentially change my data into a HTML anchor tag. I haven't actually tried this yet, but this would be fine providing the REST grid would render HTML data as HTML.
In this case I am thinking of not using the REST Grid at all and creating my own grid, but this seems extreme and I am sure there must be some CSS class or element I can use to make the grid data selectable. I don't want to spend ages implementing some custom solution if there is some simple solution I am missing.
So, I suppose my specific questions that would help me are...
1. How can you make REST grid data selectable?
2. Can REST grid data be transformed to anchor tags in AddResultCallback
3. Can REST Grid Widget be rendered as tiles while keeping render as grid functionality?
What would also help is if anyone has any Tile content templates to render data in a table or grid that looks good in SBM, makes use of the default styling, etc. Although I think this would be tricky, for example I don't think you could easily render as Tiles and create a single table row for column headings.
It would be good if anyone has any suggestions or experience on this. As mentioned above I think I could spend a lot of time on this when I feel there is probably a simple solution that I am missing.