展开/折叠gridview [英] Expanded/ collapsed gridview

查看:73
本文介绍了展开/折叠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.


这篇关于展开/折叠gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆