Forum


16:33

05/01/2010

Hi,
I am using jqgrid JSON format with PHP Zend frame work.
When I am rendering the grid, then I got a js error 'ts.rows is undefined' FF , 'ts.rows.length' is null or not an object in IE 7.0 and data is not loaded. It is showing Loading… image.
When I am using same code with normal PHP it is working. In both cases (with Zend and without Zend) the JSON data is same.
The json data looks like
{”page”:”1″,”total”:1,”records”:”1″,”rows”:[{"id":"1","cell":["","Hi","2010-01-19","00:00:12","123456","Show&Tell","Open","New"]}]}
Please give me some clue to over come this error.
Thanks,
Kutty
08:49

05/01/2010

Found out the issue.
The problem turned out to be that I was attempting to use a DIV instead of a TABLE for the datagrid container.
http://www.trirand.com/blog/?p.....-undefined
<!-- 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
Most Users Ever Online: 715
Currently Online:
43 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