Results 1 to 2 of 2

Thread: create grid from json url

  1. #1

    Default create grid from json url

    Hi all,

    May be this is banal, but I don't understand how to populate a Grid starting from the json response returnet from this URL...

    Thanks a lot in advance!

  2. #2


    I'm managing to solve the problem.
    I obtain the correct number of rows... but they are empty.
    I can imagine there's something wrong with my JsonReader configuration, but I don't understand exactly what.

    I really appreciate any suggestion, thanks guys...

    Ext.onReady(function() {
                //URL var
                var URL = ",SUB_REGION&f=json"
                /*GRID CONSTRUCTION
                //Data returned from the REST service
                //Data Store
                var ds = new{
                    proxy: new{url:URL, method:'GET'}), 
                    reader: new{root:'features', id:'ObjectID'}, [
                        {name: 'ObjectID'},
                        {name: 'STATE_NAME'},
                        {name: 'SUB_REGION'}
                //Column Model
                var colModel = new Ext.grid.ColumnModel([
                    {header: "ID", width: 100, sortable: true, dataIndex: 'ObjectID'},
                    {header: "State", width: 100, sortable: true, dataIndex: 'STATE_NAME'},
                    {header: "Sub Region", width: 100, sortable: true, dataIndex: 'SUB_REGION'}
                var grid = new Ext.grid.GridPanel({
                    el: 'grid-example', 
                    ds: ds, 
                    cm: colModel,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts