grid data doesnt populate in grid, shows in alert

QuestionsCategory: Questionsgrid data doesnt populate in grid, shows in alert
Philippe Benoliel asked 2 years ago

Grid data shows in a “alert” instead of populating in the grid. Any idea why ?
https://www.dropbox.com/s/orxewxqqgg224pa/Image%20758.png?dl=0
 

1 Answers
Abu Ghufran Staff answered 2 years ago

Hello,
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. If it is later in the code, JSON will have the html code too which will cause this issue.
You can echo the output of render() function to desired location in html.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Philippe benoliel replied 2 years ago

Thank you that helps a lot.

Your Answer

20 + 0 =

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 / 5. Vote count:

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

Let us improve this post!