vendredi 15 juillet 2016

Hide subgrid and parent row in jqgrid conditionally

How can I hide a parent row and its subgrid based on some condition? When my page loads, all of the subgrids are already expanded. This is so I can get the data from the subgrid. Basically if a subgrid contains "XXX," I want to hide the whole subgrid and it's parent row.

A big reason why my code won't work is because I already have the subgrids expanded, which messes up the parent row IDs. For example, the variable that used to be for parent row ID now translates as being a row ID for the entire grid. Also, I can't just eliminate the "+" expansion symbol on the parent rows now (obviously the subgrids will still be open).

Aucun commentaire:

Enregistrer un commentaire