GithubHelp home page GithubHelp logo

Comments (3)

EvHaus avatar EvHaus commented on August 25, 2024

Firstly, thank you for trying out the grid.

I'm having trouble reproducing the issue you're describing. I've just updated the demo page to the latest build, does it still happen there? http://www.dobyjs.com/grid/examples/#remote

As for viewing the remote request -- the demo doesn't use real AJAX requests right now as we'd need to setup a server that feeds real data for it. We will eventually.

from doby-grid.

slat avatar slat commented on August 25, 2024

Thanks for updating the demo, this isn't an issue anymore.

I put a break point in remote.js to see where the ajax requests would be happening. It seems that I would need to implement multi sorting, limit and offset on my result set and a method to return all unique results for grouped & nested group column values. And because of the additional ajax request probably be restrictive on what columns are allowed to be grouped so the query result wouldn't be too large.

Overall, I am very impressed - Thank you. I might trial it soon with some real data.
Looks like I can use "options.formatter" for setting a grouping formatter?
Filter glyphs for the column headers may be useful as the filter row can be hidden with filters still applied.

from doby-grid.

EvHaus avatar EvHaus commented on August 25, 2024

If you look on https://github.com/globexdesigns/doby-grid/wiki/Remote-Data you'll see that remote fetching requires three different functions. One to fetch counts, one to fetch data and one to fetch grouping data if you want to support that. As long as your server returns the data is the expected format (or as long as you reformat the data accordingly on the front-end) -- the grid will automatically figure out the rest.

options.formatter is used to format the cells in your grid. It's a translation layer between "what your data is" and "how your data is presented". For example, you may want to display booleans as a checkmark icon, or you may want your numbers formatted in a particular way. The grouping will always be done on the data in your data set.

from doby-grid.

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.