展开/折叠gridview

问题描述:

我有一个嵌套的gridview,它使用javascript来扩展和收缩父行以显示子行。问题是,如果我进行回发或刷新gridview崩溃。

I have a nested gridview that is using javascript to expand and contract parent rows to show child rows. The problem is that if I do a postback or refresh the gridview collapses.

尝试在每次行可见性时保存cookie中展开/折叠行的状态如果该选项可用,则更改 - 这意味着如果在客户端计算机上启用了cookie。
Try to save the state of the expanded/collapsed rows in a cookie everytime the row visibility changes if that option is available - meaning if cookies are enabled onthe client computer.