Jqgrid Showcol/hidecol Not Working After Sorting
The below given code illustrates what I have done fro hide/show. It does work on load but wouldn't work after sorting grid.jqGrid({ url: 'processing.php', datatyp
Solution 1:
Sorry but what you expect with posting of such code? It looks like you get it from the garbage. It's not polite to the readers!
Nevertheless the code have clear at least two problems:
- creating of dialog inside of
loadComplete
which will be executed multiple times (for example after sorting, paging and so on. It seems that you should move the code and place it after the grid is created. In the same way one need to bind$('#chooseField').click(...)
and$('form#myform').submit(...)
once and not every time on executingloadComplete
. - you use
id
attributes in the<form>
which are the same as thename
properties in thecolModel
. It could follow problems with id duplicates if you would use form editing for example. It seems to me that you can rewrite the code of form and binding to checkboxes without usage andid
attributes at all.
Post a Comment for "Jqgrid Showcol/hidecol Not Working After Sorting"