Giter Site home page Giter Site logo

Comments (3)

IvanJosipovic avatar IvanJosipovic commented on May 21, 2024

I think the CSV export can be implemented very easily.
See the following Issue which shows how to retrieve the Filtered Items, #118

I'll think about If I would like this functionality directly in BlazorTable.

from blazortable.

kwhv23 avatar kwhv23 commented on May 21, 2024

@IvanJosipovic

Hey, I had a similar need for exporting 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.

from blazortable.

christopher-bonitz avatar christopher-bonitz commented on May 21, 2024

@IvanJosipovic I'm having a client project where we need this feature, can we pay you to implement this instead of me having to do it outside BlazoredTable.?

Personally I don't think this feature should be a on pr default, but a option we can turn on, like a "download csv" button.
It would solve the requirement, and would have a better feel than whatever I can implement.

We don't need excel support, just plain old csv.

from blazortable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.