Does it work in the free version Footer Summary??

QuestionsDoes it work in the free version Footer Summary??
Torin asked 1 year ago

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…

3 Answers
Torin answered 1 year ago

of course, the function has a form

function grid_onload()
{
var grid = $("#list1");
grid.jqGrid('footerData','set', {id: 'Test'});
};

Abu Ghufran answered 1 year ago

Hi,

Events does not work with free version.
You can try it in grid options:

$opt["loadComplete"] = "function(){grid_onload();}"

Torin answered 1 year ago

Thank you Abu! Now it is working !

Your Answer

12 + 16 =

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:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!