冻结GridView的行/列 [英] Freeze Row/Column of GridView

查看:100
本文介绍了冻结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屋!

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