jQWidgets Forums

jQuery UI Widgets Forums Grid Build grid with unknow fields

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Build grid with unknow fields #51530

    morgenweck
    Participant

    Is it possible to build a grid with an unknown data structure? I would like to attach to a webservice and have the grid display whatever the JSON data structure displays. If the JSON has 5 fields then the grid has 5 or if the data source has 10 then the grid has 10. So then the grid needs to build dynamically rather than being hardcoded.

    Thanks

    Build grid with unknow fields #51532

    Peter Stoev
    Keymaster

    Hi morgenweck,

    No, it is not possible. You can build a Grid if you know your data structure and define it in the source object during the initialization process.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Build grid with unknow fields #51562

    morgenweck
    Participant

    If you know it on the server side and can you pass it down as JSON data and then build the structure in code? There has got to be a way that the client side code does not have to be changed for every different web server call. No?

    Build grid with unknow fields #51563

    Peter Stoev
    Keymaster

    Hi morgenweck,

    If you can determine in some way your data structure, then probably you can write some custom code which builds the source object automaticall. However, jqxGrid, does not have such automation.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.