Skip to content Skip to sidebar Skip to footer

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:

  1. 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 executing loadComplete.
  2. you use id attributes in the <form> which are the same as the name properties in the colModel. 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 and id attributes at all.

Post a Comment for "JqGrid ShowCol/hideCol Not Working After Sorting"