I am working on jqgrid with ASP.NET WEB API.
I want to add two rows in the footer of jqgrid.
So a little search on the net brought me to this link (2010) which says “It is not possible”, I am thinking as the answer is of 2010, may be by now some thing / some workaround may have been made possible for this.
What do I want to show in footer ?
I want to show two rows
- Total for data preset in current page
- Grand total for data present in all of the pages
I am able to pass the data and read the data, the question is how to use this data and create two footer rows in jqgrid.
Any thoughts ?
I found the question interesting, so I created the demo which demonstrates one from the possible implementation of two-rows footer:
The main idea is to add the second row in the table where the standard footer already exist. To eliminate possible problems with other parts of jqGrid code I replaced
footrowclass name in the custom row tomyfootrow. To have the same CSS settings for the second footer as the original tooter has I included the copy of.ui-jqgrid tr.footrow tdfromui.jqgrid.csswith the same definitions for.ui-jqgrid tr.myfootrow td:The full code you will find below
In the code I set additional information in columns
invdateandamountof the footer.