Forum


22:59

21/12/2008

hi all,
Back again
for some reason my grid is not loading data..here is what i my handler returns
{
"page": "1",
"total": "1",
"records": "22",
"rows": [
{
"id": "1231822674171",
"cell": [
"-",
"-",
"AlanSujovolsky",
"User1",
"-",
"2401000270",
"0270",
"AlanSujovolskyGenericSIP",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"AlanSujovolsky",
"User2",
"-",
"2401000271",
"0271",
"AlanSujovolskyGenericSIP",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"AlanSujovolsky",
"User3",
"-",
"-",
"1272",
"AlanSujovolskyGenericSIP",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"Marcelo",
"Valotta",
"-",
"-",
"5551",
"-",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"Marcelo Enrique",
"Valotta",
"-",
"-",
"5552",
"-",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"AlanSujovolsky",
"User1",
"-",
"2401000270",
"0270",
"AlanSujovolskyGenericSIP",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"AlanSujovolsky",
"User2",
"-",
"2401000271",
"0271",
"AlanSujovolskyGenericSIP",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"AlanSujovolsky",
"User3",
"-",
"-",
"1272",
"AlanSujovolskyGenericSIP",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"Marcelo",
"Valotta",
"-",
"-",
"5551",
"-",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"Marcelo Enrique",
"Valotta",
"-",
"-",
"5552",
"-",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"AlanSujovolsky",
"User1",
"-",
"2401000270",
"0270",
"AlanSujovolskyGenericSIP",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"AlanSujovolsky",
"User2",
"-",
"2401000271",
"0271",
"AlanSujovolskyGenericSIP",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"AlanSujovolsky",
"User3",
"-",
"-",
"1272",
"AlanSujovolskyGenericSIP",
"Details",
"-"
]
},
{
"id": "1231822674171",
"cell": [
"-",
"-",
"Marcelo",
"Valotta",
"-",
"-",
"5551",
"-",
"Details",
"-"
]
},
{
"id": "mainautoatt@xdp.broadsoft.com",
"cell": [
"-",
"MainAttendant",
"-",
"-",
"Support \\\\ Tier 1",
"2401000273",
"0273",
"N/A",
"Detail Members",
"mainautoatt@xdp.broadsoft.com"
]
},
{
"id": "centerl1@xdp.broadsoft.com",
"cell": [
"-",
"Call Center Asujo 1",
"-",
"-",
"",
"2401000272",
"0272",
"N/A",
"Detail Members",
"centerl1@xdp.broadsoft.com"
]
},
{
"id": "HGAsujo1@xdp.broadsoft.com",
"cell": [
"-",
"Hunt Group Asujo 1",
"-",
"-",
"",
"2401000274",
"0274",
"N/A",
"Detail Members",
"HGAsujo1@xdp.broadsoft.com"
]
},
{
"id": "mainautoatt@xdp.broadsoft.com",
"cell": [
"-",
"MainAttendant",
"-",
"-",
"Support \\\\ Tier 1",
"2401000273",
"0273",
"N/A",
"Detail Members",
"mainautoatt@xdp.broadsoft.com"
]
},
{
"id": "centerl1@xdp.broadsoft.com",
"cell": [
"-",
"Call Center Asujo 1",
"-",
"-",
"",
"2401000272",
"0272",
"N/A",
"Detail Members",
"centerl1@xdp.broadsoft.com"
]
},
{
"id": "HGAsujo1@xdp.broadsoft.com",
"cell": [
"-",
"Hunt Group Asujo 1",
"-",
"-",
"",
"2401000274",
"0274",
"N/A",
"Detail Members",
"HGAsujo1@xdp.broadsoft.com"
]
},
{
"id": "mainautoatt@xdp.broadsoft.com",
"cell": [
"-",
"MainAttendant",
"-",
"-",
"Support \\\\ Tier 1",
"2401000273",
"0273",
"N/A",
"Detail Members",
"mainautoatt@xdp.broadsoft.com"
]
},
{
"id": "centerl1@xdp.broadsoft.com",
"cell": [
"-",
"Call Center Asujo 1",
"-",
"-",
"",
"2401000272",
"0272",
"N/A",
"Detail Members",
"centerl1@xdp.broadsoft.com"
]
}
]
here is my grid code
jqGrid({
datatype: "json",
url:"pbxEntityMap.do?opName=all",
colNames:["Type","User Name","First Name","Last Name","Department","Phone Number","Ext","Device Id","Command","id"],
colModel:[
{name:'Type',index:1, width:80, align:"center",editable:false},
{name:'User Name',index:2, width:80, align:"center",editable:false},
{name:'First Name',index:3, width:175,align:"center",editable:false},
{name:'Last Name',index:4, width:180,align:"center",editable:false},
{name:'Department',index:5, width:90, align:"center",editable:false} ,
{name:'Phone Number',index:6, width:90, align:"center",editable:false},
{name:'Ext.',index:7, width:80, align:"center",editable:false},
{name:'Device Id',index:8, width:80, align:"center",editable:false},
{name:'Command',index:9, width:100, align:"center",editable:false},
{name:'id',index:10,hidden:true}
],
sortname: "id",
sortorder: "desc",
imgpath: "../css/images",
caption: "PBX Entities" });
what could be wrong herein..
Thanks all,
}
I ran into the same problem recently. The problem turned out to be that I was attempting to use a DIV instead of a TABLE for the datagrid container. Using a table instead resolved the issue, e.g.
<!-- Grid -->
<table id="search-results-datagrid" class="scroll" cellpadding="0" cellspacing="0"></table>
<!-- Pager -->
<div id="search-results-pager" class="scroll" style="text-align:center;"></div>
Best,
Keith
18:33

Moderators
30/10/2007

Hello,
No. Everthing is build on tables.
Best 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:
49 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