Forum


23:57

28/01/2009

I'm having an issue with jqgrid being compatible with django serialization.
It appears to be an issue with the information being in the fields dict. According to this project: http://code.google.com/p/appfusedjango/ all that was needed was a single patch in version 3.3.1. I attempted to do similar above line 839 of grid.base.js. I couldn't get this to work.
It did appear to me that something similar existed if repeatitems: true. I tried to do that however I get this error in firebug:
03:16

Moderators
30/10/2007

Hello,
Try to use the last version - 3.4.2
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
21:45

28/01/2009

Hey Tony,
I upgraded. When setting repeatitems: true I get the following error:
ccur is undefined
grid.base.js
Line 817
When repeatitem: false I don't get an error but my grid shows blank items. Here is my json data:
{"total":0, "records":7, "rows":[{"pk": 1, "model": "auto.vehicle", "fields": {"location": "Beaverton", "price": 9000, "state": "OR", "zip": 97123, "address": "123 Park Ave"}}, {"pk": 4, "model": "auto.vehicle", "fields": {"location": "Cottage Grove", "price": 14900, "state": "OR", "zip": 97472, "address": "2233 Cottage way"}}, {"pk": 7, "model": "auto.vehicle", "fields": {"location": "Springfield", "price": 18990, "state": "OR", "zip": 97477, "address": "2686 Wayside LN"}}, {"pk": 8, "model": "auto.vehicle", "fields": {"location": "Eugene", "price": 2874, "state": "OR", "zip": 97402, "address": "76555 Walker St"}}, {"pk": 9, "model": "auto.vehicle", "fields": {"location": "Cottage Grove", "price": 2300, "state": "OR", "zip": 97472, "address": "223 Smith Way"}}, {"pk": 10, "model": "auto.vehicle", "fields": {"location": "Fall Creek", "price": 7700, "state": "OR", "zip": 97438, "address": "123 Little Fall Creek Rd."}}, {"pk": 11, "model": "auto.vehicle", "fields": {"location": "Eugene", "price": 7640, "state": "OR", "zip": 97402, "address": "48596 Martin Luther King Jr Blvd."}}] }
Thanks for your help
00:46

Moderators
30/10/2007

Hello,
How looks the jsonReader?
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
12:32

28/01/2009

I have also tried it this way both with repeatitems true and false:
jsonReader: {
root: "rows",
id: "pk",
cell: "fields",
page: "page",
total: "total",
records: "records",
repeatitems: true,
},
When repeatitems: true, I get checkboxes down the left side but the bottom lines of the rows are missing. When false the rows show up blank.
TIA
02:40

Moderators
30/10/2007

HEllo,
And what is the colModel?
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
23:27

28/01/2009

colModel :[
{name:”Image”, index:”image”, width:120, sortable:false},
{name:”id”, index:”id”, width:120},
{name:”address”, index:”address”, width:260, sortable:false},
{name:”location”, index:”location”, width:150, align:”left”},
{name:”zip”, index:”zip”, width:70, align:'center'},
{name:”price”, index:”price”, width:110, align:'center', formatter:'currency'},
12:09

Moderators
30/10/2007

Hello,
Testted and worked (if this is your data and colModel)
jsonReader:
jsonReader : {
root: "rows",
id: "pk",
cell: "fields",
page: "page",
total: "total",
records: "records",
repeatitems: false
}
colModel:
colModel :[
{name:"Image", index:"image", width:120, sortable:false},
{name:"id", index:"id", width:120, jsonmap:"pk"},
{name:"address", index:"address", width:260, sortable:false, jsonmap:"fields.address"},
{name:"location", index:"location", width:150, align:"left",jsonmap:"fields.location"},
{name:"zip", index:"zip", width:70, align:'center', jsonmap:"fields.zip"},
{name:"price", index:"price", width:110, align:'center', formatter:'currency',jsonmap:"fields.price"}
],
]
Enjoy
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
62 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66