Hi everyone
I'm just starting my adventure with phpgrid and I came to Footer Summary which completely does not work: /
I wrote:
$ opt ["footerrow"] = true;
And there was an empty footer in the grid.
Later:
$e["js_on_load_complete"] = "grid_onload";
$g->set_events($e);
$e["js_on_load_complete"] = "grid_onload";
$g->set_events($e);
<script>
function grid_onload()
{
grid.jqGrid('footerData','set', {id: 'Test'});
}
<script>
and nothing works anymore 🙁
500 Internal Server Error
What am I doing wrong, or maybe it will not work in the free version?
Regards
Torin
sorry for my English…
of course, the function has a form
function grid_onload()
{
var grid = $("#list1");
grid.jqGrid('footerData','set', {id: 'Test'});
};
Hi,
Events does not work with free version.
You can try it in grid options:
$opt["loadComplete"] = "function(){grid_onload();}"