jqgrid()不是函数错误 [英] jqgrid() is not a function error
本文介绍了jqgrid()不是函数错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在用jqgrid做一个mvc3应用程序.在那样的情况下,使用的是$(#list").jqgrid({}).但是显示错误.
$("list").jqgrid()不是函数错误.
谁能建议我如何解决此错误.
Hi,
I am doing one mvc3 application with jqgrid.In that am using $("#list").jqgrid({}) like that,.But it displays an error.
$("list").jqgrid() is not a function error.
can any one suggest me how to solve this error.
$(document).ready(function () {
$("#list").jqGrid({
url: '/Home/GridData/',
datatype: 'json',
mtype: 'GET',
colNames: ['Id', 'Votes', 'Title'],
colModel: [
{ name: 'Id', index: 'Id', width: 40, align: 'left' },
{ name: 'Votes', index: 'Votes', width: 40, align: 'left' },
{ name: 'Title', index: 'Title', width: 400, align: 'left'}],
pager: jQuery('#pager'),
rowNum: 10,
rowList: [5, 10, 20, 50],
sortname: 'Id',
sortorder: "desc",
viewrecords: true,
imgpath: '/scripts/themes/coffee/images',
caption: 'My first grid'
});
});
推荐答案
(#list").jqgrid({})一样,但是显示错误.
("#list").jqgrid({}) like that,.But it displays an error.
("list").jqgrid()不是函数错误.
谁能建议我如何解决此错误.
("list").jqgrid() is not a function error.
can any one suggest me how to solve this error.
(文档).ready(函数(){
(document).ready(function () {
这篇关于jqgrid()不是函数错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文