保留Gridview滚动位置并在从modalpopup回发后突出显示 [英] Retaining Gridview scroll position and highlight after postback from a modalpopup
本文介绍了保留Gridview滚动位置并在从modalpopup回发后突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在从modalpopup回发时保留gridview的滚动位置。我试图将SelectedIndex存储在隐藏字段中,然后在gridview重新绑定时读取该字段,但它不起作用。
如何在从允许更新该行的modalpopup返回后存储Gridview的行位置?
解决方案
你是如何启动模态对话框的?打开模式对话框时,不应该回显父页面。
MaintainScrollPositionOnPostback [ ^ ]
我找到了几个关于这个问题的javascript解决方案。
<小> 小> d的 b'/ b>
I need to retain a gridview's scroll position upon postback from a modalpopup. I tried to store the SelectedIndex in a hidden field and then read the field when the gridview rebinds, but it didn't work.
How can I store the Gridview's row position after returning from a modalpopup which allows for updating of that row?
解决方案
How are you initiating the modal dialog? There should be no post-back of the parent page when opening a modal dialog.
MaintainScrollPositionOnPostback[^]
I found several javascript solutions to this question.
db
这篇关于保留Gridview滚动位置并在从modalpopup回发后突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文