Question

I have a page with a grid allowing subgrids. I would like the user to be able to enter data in one subgrid, collapse it, and enter data in another subgrid, and so on... The data entered should be saved to the server with one call (or discarded). It seems however that when collapsing a subgrid it dissapears from the DOM. Is there an easy way to hide it instead?

Was it helpful?

Solution

The exact solution of your problem could depend on details of your current implementation. Whyt you can to do for example is to use subGridRowColapsed callback or jqGridSubGridRowColapsed event to save editing row/cell before the grid will be collapsed. Another option reloadOnExpand: false of subGridOptions could be helpful too. It inform jqGrid that you prefer to hide collapsed subgrid instead of deleting it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top