Forum

July 12th, 2025
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
jsonReader for this datasource
16/08/2011
03:49
Avatar
daniel2d2art
New Member
Members
Forum Posts: 1
Member Since:
16/08/2011
sp_UserOfflineSmall Offline

Hi here!

could you show me which is the "jsonReader" for this datasource:

{
  "total":"30",
  "page":"1",
  "records":"300",
  "result": [
        { "car": { "id":495,               
                   "title":"Wireless Communications-4",
               "power":8,              
                      "color":"Turquoise",
               "manufacturer":"Leexo",
               "production_starts_at":"2000-10-06",
               "production_ends_at":"2027-04-04" }
        },
        {"car": { "id":463,
              "title":"Wholesale, Other-8",
              "power":8,
              "color":"Red",
              "manufacturer":"Youfeed",
              "production_starts_at":"2003-01-07",
              "production_ends_at":"2029-03-28"}
        },
        {"car": { "id":355,
              "title":"Wholesale Other-1",
              "power":2,
              "color":"Blue",
              "manufacturer":"Realbuzz",
              "production_starts_at":"2004-06-07",
              "production_ends_at":"2027-10-12"}
         }
    ]
}

I can read it OK, using dot accesing in colModel "name" property

          colModel :[  {name:'car.title', index:'title', width:55} .... .... ... ]

And this jsonReader

          jsonReader : {
            root:"result",
            page: "page",
            total: "total",
            records: "records",
            repeatitems: false,
            id: "car.id"
          }

But I want to use it directly using "cell" definition and avoid the dot accesing in name property or jsonmap property.

jsonReader : {

...

  cell: "car"

...

}

But cell property don't runs properly with this estructure... I can't get the correct jsonReader set.

I think tried all the possible combinations, but not results. Perhaps this data structure can't be mapped directly to the jsonReader and needs using dot accessing or jsonmap in colModel

Any suggestions?

Thanks guys!!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information