Git Product home page Git Product logo

Comments (3)

tabalinas avatar tabalinas commented on July 21, 2024

Thank you!
Could you provide more info about the case?
What would you like to do with the source fields config?
You can save initial fields config before grid creation, if you need it later. Or if you wish to provide these fields to another grid, you can do it. Just read fields option value from grid like this $("#jsGrid").jsGrid("option", "fields").

from jsgrid.

markdhel avatar markdhel commented on July 21, 2024

Thanks Artem! What I mean is something like this, i have a json with the results and fields details. I would like to call the fields directly from the json.
{ "results": [{ "Name": "Otto Clay", "Age": 61, "Country": 6, "Address": "Ap #897-1459 Quam Avenue", "Married": false }, { "Name": "Connor Johnston", "Age": 73, "Country": 7, "Address": "Ap #370-4647 Dis Av.", "Married": false }, { "Name": "Lacey Hess", "Age": 29, "Country": 7, "Address": "Ap #365-8835 Integer St.", "Married": false }], "fields": [{ "name": "Name", "type": "text" }, { "name": "Age", "type": "number" }, { "name": "Address", "type": "text" }, { "name": "Married", "type": "checkbox", "title": "Is Married", "sorting": true }, { "type": "control" }] }

I was able to make this work already i just created a new function to process the the json details and pass the needed details to loadData and fields. Thanks again!

from jsgrid.

tabalinas avatar tabalinas commented on July 21, 2024

I'm glad that you've worked this out. Thank you!

from jsgrid.

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.