Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

footerData destroy frozen cols when it's inside jqGridAfterLoadComplete event #1071

Open
fredsal opened this issue Oct 9, 2024 · 0 comments

Comments

@fredsal
Copy link
Contributor

fredsal commented Oct 9, 2024

This worked in previous versions, it is a breaking change?

v5.8.8
Demo: https://jsfiddle.net/x05efgj6/2/ (try moving horizontal scrollbar, there is no frozen cols, but there is frozen header)

image

// here is the event
$("#jqGrid").on('jqGridAfterLoadComplete',()=>{  		
    // here destroys frozen columns
    // I change it dynamically because I put a value that I recalculate in each `jqGridAfterLoadComplete`
   $("#jqGrid").footerData('set',{CategoryName:'MyFooter'})
});

This worked without problems before, am I doing something wrong??


I did found the problem, now there is destroyFrozen arg on footerData method

footerData : function(action,data, format, index, destroyFrozen) {

and it is true by default
if(destroyFrozen === undefined) { destroyFrozen = true; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant