滚动时更新面板中的网格是抽搐 [英] gird in the update panel is jerking when scrolling
本文介绍了滚动时更新面板中的网格是抽搐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
heyy ..
我在项目模板中使用网格我有一个复选框(网格在更新面板中)..但是当我滚动网格时然后选中复选框,然后页面抽搐并转到顶部..
这里是我的网格代码..我的源代码很大..如果你想要我将粘贴我的代码...
heyy..
I am using a grid in the item template i have a checkbox (grid is in update panel).. But when I scroll the grid then check the check box then the page is jerking and go to top..
here is my gird code.. My source code is large ..if you want I will paste my code...
推荐答案
在页面指令中将 MaintainScrollPositionOnPostback 设置为 true 。
试试这个:
Set MaintainScrollPositionOnPostback to true in your page directive.
Try this:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" MaintainScrollPositionOnPostback="true" %>
--Amit
--Amit
这篇关于滚动时更新面板中的网格是抽搐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文