Loading JSON data from an API for FlexGrid

Posted by: suleman1 on 20 September 2018, 10:33 pm EST

    • Post Options:
    • Link

    Posted 20 September 2018, 10:33 pm EST

    Hi, we are trying to leverage Flexgrid for our existing Silverlight Grid. We use couchdb to get JSON document and then parse that JSON to populate the grid.

    Can you help and provide the sample of Flexgrid fetching JSON data from an external URL and then populating the flexgrid with it?

  • Posted 21 September 2018, 1:33 am EST

    Hi,

    To populate FlexGrid from JSON fetched from external URL, all you have to do is first assign an empty collectionView to the FlexGrid’s itemSource and then after fetching the data assign fetched data to the collectionView’s sourceCollection and it will be loaded into the grid.

    Please refer to the following sample: https://stackblitz.com/edit/js-b5h2ts?file=index.js

    Note: Wijmo’s FlexGrid is a JavaScript client-side control, I am not sure how you are going to use this in SilverLight application. We have a SilverLight version of FlexGrid, but there is no active support on it.

    Let me know if you need some more assistance.

    Regards

    Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels