问题描述
嗨我想在滚动时冻结网格标题
hi i want the grid headers to be freezed while scrolling
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script src="../jq/ScrollableGridViewPlugin_ASP.NetAJAXmin.js" type="text/javascript"></script>
<link href="Styles/ExtractCFM.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function () {
var grid = document.getElementById('ContentPlaceHolder1_TabContainer1_pnlfactory_gvcfmfactory');
if (grid != null || undefined) {
grid.Scrollable({
ScrollHeight: 500
});
}
else {
alert("mahesh");
}
});
</script>
错误我在线上 grid.Scrollable({对象不支持属性或方法请帮助我...
the error i am geting at the line "grid.Scrollable({" object doesnt support property or method please help me out...
推荐答案
我在线上的错误grid.Scrollable({对象不支持属性或方法请帮助我...
the error i am geting at the line "grid.Scrollable({" object doesnt support property or method please help me out...
<script src="../jq/ScrollableGridViewPlugin_ASP.NetAJAXmin.js" type="text/javascript"></script>
这条路径是不正确或方法可滚动
文件中不存在。
所以,更正路径,如果是不正确。您可以通过查看Developer Tool的脚本选项卡查看是否已将其添加到页面中。还要查明文件中是否存在该函数。
Either this path is incorrect or the method Scrollable
Is not present inside the file.
So, correct the path, if it is incorrect. You can see whether it is added to the page or not by seeing the Script tab of Developer Tool. Also find out whether that function is present inside the file or not.
这篇关于Javascript ScrollableGrid.js对象不支持此属性或方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!