Forum
02:08
Moderators
30/10/2007
Hello,
There is no example, but if you follow the rules, you can easy configure
this adding in the json data the needed fields
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.
10:05
18/10/2008
I'm getting a error Type: parsererror; Response: 200 OK using:
$responce->page = 1;
$responce->total = 1;
$responce->records = 1;
foreach($rows as $row) {
if($row[rgt] == $row[lft]+1) $leaf = 'true';else $leaf='false';
$responce->rows[$i]['cell']=array($row['id'],$row['name'],$row['date'],false,$leaf,$row[lft],$row[level],$row[rgt]);
}
echo json_encode($responce);
where the grid columns are id(hidden),name,date
tried also with:
$responce->rows[$i]['cell']=array($row['id'],$row['name'],$row['date'],$row[level],$row[lft],$row[rgt],$leaf,false);
after the xml format from your example.
Usign XML works fine, w/ json I miss something, but i can't figure out... 😐
Thanks! I apreciate your help!
13:27
18/10/2008
Thx KG!
This is still not working for me:
to define the grid columns i used:
colModel: [
{name:'d',index:'id', width:1,hidden:true,key:true},
{name:'name',index:'name', width:180},
{name:'date',index:'date', width:50, align:"center"}
]
Do I need to add other hidden columns ?
Thank you!
02:01
Moderators
30/10/2007
Hello,
Use FireBug to see the response
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.
00:29
Moderators
30/10/2007
Hello,
Update to the latest stable release.
Regards
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:08
24/09/2009
I'm also having difficulty getting the rows to collapse in 3.5.3… Also, most of the rows are opening with blank data,
[Update: turns out I had my levels wrong on that one..
made the row wider, and there were mas my row ]
but I am sending my JSON right.. Any clue why this might be?
Oops.. wrong amount of fields.
13:31
I have a working example here:
http://www.blackstag.com/json-example
it's not adjacency, but it shouldn't matter - since your issues are json related.
just use firebug and look at the console return json data.
tim
Most Users Ever Online: 715
Currently Online:
40 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