BlazorTable
BlazorTable copied to clipboard
CSV Export (Sorry for Duplicate)
I originally posted in Issue #126 but I didn't get a response.
I have a need to export a table to CSV, but I needed the rendered version of the data (like, if you have a custom template for a column).
I couldn't see any way to do this without actually putting all filtered items (ignoring pages) on the DOM in a hidden div, getting all of the rendered text with a JS interop, then finally saving it as a CSV. This puts some strain on the browser having to put everything on the DOM like that, but it works.
Do you know of a better way to do this? I don't know if there's a way to get the text from a RenderFragment without actually putting it on the DOM first, but this would help immensely and would cut down on in-browser memory usage as well.
I can show you my solution if you'd like as well.