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
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.
Thank you that helps a lot.
Your Answer