jqGrid icon indicating copy to clipboard operation
jqGrid copied to clipboard

`footerData` destroy frozen cols when it's inside `jqGridAfterLoadComplete` event

Open fredsal opened this issue 1 year ago • 0 comments

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 https://github.com/tonytomov/jqGrid/blob/7b23577790f4720c8b8f0e722534b8065f7799c7/js/grid.base.js#L6784 and it is true by default https://github.com/tonytomov/jqGrid/blob/7b23577790f4720c8b8f0e722534b8065f7799c7/js/grid.base.js#L6796

fredsal avatar Oct 09 '24 15:10 fredsal