How sum calculate all records total for a numeric column in footerrow

QuestionsHow sum calculate all records total for a numeric column in footerrow
toki asked 11 years ago

Hi,

var grid = $("#list1"),
sum = grid.jqGrid('getCol', 'total', false, 'sum');
grid.jqGrid('footerData','set', {total:sum});

this codes calculate sum of total column in footerrow for only shown page. Is it poossible to create an second footerrow and make it calculate running sum of total column for records until to shown page.

Regards…

9 Answers
Abu Ghufran answered 11 years ago

You can show total rows in some other column or in same column with text separated.
New footer row is not doable now.

I'm sending you sample code in separate email.

juliano gomes weber answered 11 years ago

Abu Please send this example to me.

Thanks
Juliano.

Abu Ghufran answered 11 years ago

Sent, will include it in upcoming version too.

Andy answered 11 years ago

Abu
lease send this example.

thanks.

Abu Ghufran answered 11 years ago

Sent. It's in demos/appreance/footer-row.php

PRANAV BATRA answered 10 years ago

I WANT THE SUM OF THE VALUES OF ALL THE RECORDS IN THE TABLE LIKE POSTED IN How sum calculate all records total for a numeric column in footerrow.
I ALSO WANT THE LINK TO THE UPDATE TO VERSION 1.4.8

Abu Ghufran answered 10 years ago

I've emailed you latest build.

Martin Mata answered 9 years ago

i know is 2015 but need the same code to show the sum of all records I have the version 1.4.8.3 and is not in the demo code thanks

Your Answer

17 + 18 =

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 1 / 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?