修复GridView标头 [英] Fix the GridView header

查看:66
本文介绍了修复GridView标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想使用jquery在我的应用程序中修复GridView标题。



Hi All,
I want to fix GridView header in my application using jquery .

<script src="JScript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="JScript/ScrollableGridPlugin.js" type="text/javascript"></script>
    <script type = "text/javascript">
        $(document).ready(function () {
            //Invoke Scrollable function.
            $('#<%=gvwName.ClientID %>').Scrollable({
                ScrollHeight: 600,
            });
        });
</script>





我正在写这段代码。实际上问题是,如果我在GridView中有CheckBox,那么CheckBoxes不起作用。当我点击第一次进行分类后,它正在工作。

谢谢&问候



I am writing this code. Actually the problem is, if i have CheckBox in GridView so that CheckBoxes are not working. When i click first time for sorting after that it is working.
Thanks & Regards

推荐答案

(document).ready(function(){
//调用Scrollable函数。
(document).ready(function () { //Invoke Scrollable function.


( '#<% = gvwName.ClientID %> ')。可滚动({
ScrollHeight:600,
});
});
< / script >
('#<%=gvwName.ClientID %>').Scrollable({ ScrollHeight: 600, }); }); </script>





我正在写这段代码。实际上问题是,如果我在GridView中有CheckBox,那么CheckBoxes不起作用。当我点击第一次进行分类后,它正在工作。

谢谢&问候



I am writing this code. Actually the problem is, if i have CheckBox in GridView so that CheckBoxes are not working. When i click first time for sorting after that it is working.
Thanks & Regards


也许你可以尝试我的解决方案,我想一个jquery插件可以修复标题和冻结列。



使用jQuery的GridViewScroll

maybe you can try my solution, i worte a jquery plug-in can be fixed header and freeze column.

GridViewScroll with jQuery


这篇关于修复GridView标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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