grid data doesnt populate in grid, shows in alert

QuestionsCategory: Questionsgrid data doesnt populate in grid, shows in alert
Philippe Benoliel asked 7 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 7 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
Grid 4 PHP Framework
 
Philippe benoliel replied 7 years ago

Thank you that helps a lot.

Your Answer

12 + 6 =

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

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?