冻结GridView的行/列 [英] Freeze Row/Column of GridView
问题描述
我无法维持以下javascript创建的行/列的冻结:
I am unable to maintain the freeze of the rows/columns created by the following javascript:
<script type="text/javascript">
$(document).ready(function () {
gridviewScroll();
});
function gridviewScroll() {
$('#<%=gvSupv.ClientID%>').gridviewScroll({
width: 660,
height: 200,
freezesize: 2
});
}
</script>
gridview位于ModalPopup面板中,该面板还包含确定和取消按钮。向下滚动面板后,这些按钮才会显示。下面列出的是面板的标题代码:
The gridview is within a ModalPopup panel that also contains an "OK" and "Cancel" button. These buttons are not visible until you scroll down the panel. Below listed is the header code for the panel:
<asp:Panel ID="pnlSupervision" runat="server"
Width="1300px" Height="300px" ScrollBars="Both"
Style="position: absolute; top: 50px;
left: 25px;">
ModalPopupExtender代码如下:
The ModalPopupExtender code is as follows:
<cc1:ModalPopupExtender ID="mpopupSupv" runat="server" TargetControlID="btnOffcrDistrb"
PopupControlID="pnlSupervision" DropShadow="true"
EnableViewState="true" />
感谢帮助。
Appreciate the assistance.
推荐答案
(document).ready(function(){
gridviewScroll();
});
函数gridviewScroll(){
(document).ready(function () { gridviewScroll(); }); function gridviewScroll() {
('#<% = gvSupv.ClientID %> ')。gridviewScroll({
宽度:660,
高度:200,
freezesize:2
}) ;
}
< / script >
('#<%=gvSupv.ClientID%>').gridviewScroll({ width: 660, height: 200, freezesize: 2 }); } </script>
gridview位于ModalPopup面板中,该面板还包含确定和取消按钮。向下滚动面板后,这些按钮才会显示。下面列出的是面板的标题代码:
The gridview is within a ModalPopup panel that also contains an "OK" and "Cancel" button. These buttons are not visible until you scroll down the panel. Below listed is the header code for the panel:
<asp:Panel ID="pnlSupervision" runat="server"
Width="1300px" Height="300px" ScrollBars="Both"
Style="position: absolute; top: 50px;
left: 25px;">
ModalPopupExtender代码如下:
The ModalPopupExtender code is as follows:
<cc1:ModalPopupExtender ID="mpopupSupv" runat="server" TargetControlID="btnOffcrDistrb"
PopupControlID="pnlSupervision" DropShadow="true"
EnableViewState="true" />
感谢您的帮助。
Appreciate the assistance.
这篇关于冻结GridView的行/列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!