kiruthika
kiruthika

Reputation: 2189

Jqgrid issue with footer text format

In Jqgrid for some columns I have set as link. And also for those columns I have set footer (MAX). But the issue is, configured link is also getting added to the footer value, which is not expected.

Any help is appreciated.

Thanks in advance.

Upvotes: 2

Views: 3201

Answers (1)

Oleg
Oleg

Reputation: 221997

I think the problem is how you add the footer information. If you use footerData you can use false as the last parameter (the format parameter) of footerData. In the case the footer data will not be formatted by the standard formatter of the corresponding column. As the example see the demo.

If you add the data from the server using userdata and use userDataOnFooter jqGrid option the formatter parameter will be alway used as true (see the source code of jqGrid here and here). As a workaround you can remove userDataOnFooter:true setting and add the footer information manually with respect of footerData inside your localComplete event handle:

var myGrid = $("#list"); // your grid
// ...

// inside of localComplete you can add the data
var userData = myGrid.jqGrid("getGridParam","userData");
myGrid.jqGrid("footerData","set",userData,false);

Upvotes: 10

Related Questions