Data is not displaying in the grid

QuestionsData is not displaying in the grid
RG asked 10 years ago

I have downloaded the php grid free version. The index.php under phpgrid folder
shows the demo grid. Nice!!

Created a new php file test.php which contains html tags.
Included the index.php within the body tags of the test.php
" <php? include 'index.php'; ?> '

The grid shows up but NO DATA.

What could be the reason?

Thanks.

2 Answers
Abu Ghufran answered 10 years ago

Q) How to debug no records (blank grid)?

Few considerations before use

1) include the jqgrid_dist.php file before any thing rendered to output.
2) Check the ajax response of grid,

Also make sure, you call '$g->render();' function before any HTML is rendered
(echo'd) to output, as it expect exact JSON format for ajax calls

Use firefox->firebug->net->ajax-call of grid->response. You will see the output there, in case of any error. It should be proper JSON format data in order to render grid

Review this tutorial for '[debugging with firebug](https://phpgrid.desk.com/customer/portal/articles/926266)'.

Sai answered 10 years ago

I have a similar issue. The demo page displays blank grid. I followed instructions to debug using Firebug. Ajax response seems to contain data in proper json format.

Your Answer

1 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?