-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Comments
Glad to hear you have found a solution. |
Don't worry, you have a personal life like everyone else.
I did found the problem, but it seems like a breaking change, this change was quite unexpected |
Actually there is a option userDataOnFooter which actually do the same you do. If you really need this maybe you will need to call the command within setTimeout. Regards |
It is to simulate an ajax call, which is the moment where the problem happens, without ajax nothing happens
In the example, userDataOnFooter is being used, or am I using it wrong? |
If you comment the code in jqGridAfterLoadComplete everthing will be ok. In this case you call it two times one after other. Please look this code in the source: https://github.com/tonytomov/jqGrid/blob/master/js/grid.base.js#L3192 The same apply to JSON data. |
Sorry I mean you will need to comment the event and stay only with the lines like this: $("#jqGrid").jqGrid({
datatype: "local",
mtype: "POST",
colModel: [
{ label: 'Category Name', name: 'CategoryName', width: 75, frozen:true },
{ label: 'Product Name', name: 'ProductName', width: 300 },
{ label: 'Country', name: 'Country', width: 200 },
{ label: 'Price', name: 'Price', width: 80 },
{ label: 'Quantity', name: 'Quantity', width: 80 }
],
width: 450,height: 200, autowidth:false, shrinkToFit:false,
footerrow:true
});
$("#jqGrid").footerData('set',{CategoryName:'MyFooter'})
$("#jqGrid").jqGrid('setFrozenColumns');
}; |
Yes that works, I'll try to explain myself again
I reload the ajax grid periodically, I set with frozen columns, This worked correctly in previous versions, look: https://jsfiddle.net/jLycz4kg/ here I used |
using |
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)
This worked without problems before, am I doing something wrong??
I did found the problem, now there is
destroyFrozen
arg onfooterData
methodjqGrid/js/grid.base.js
Line 6784 in 7b23577
and it is
true
by defaultjqGrid/js/grid.base.js
Line 6796 in 7b23577
The text was updated successfully, but these errors were encountered: