asp.net mvc 3 - jQuery Grid error -


i'm trying use jquery grid. keep getting error @ jquery-1.5.1.js file. microsoft jscript runtime error: object doesn't support property or method

i'm trying run code found here http://haacked.com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx test

i have in controller:

    public jsonresult griddata(string sidx, string sord, int page, int rows)     {         int totalpages = 1; // we'll implement later         int pagesize = rows;         int totalrecords = 3; // implement later          var jsondata = new         {             total = totalpages,             page = page,             records = totalrecords,             rows = new[]{                 new {id = 1, cell = new[] {"1", "-7", "is question?"}},                 new {id = 2, cell = new[] {"2", "15", "is blatant ripoff?"}},                 new {id = 3, cell = new[] {"3", "23", "why sky blue?"}}             }         };         return json(jsondata);     } 

and in index.cshtml have following

<script type="text/javascript">         jquery(document).ready(function () {             jquery("#list").jqgrid({                 url: '/home/griddata/',                 datatype: 'json',                 mtype: 'post',                 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: '',                 caption: 'my first grid'             });         });  </script>   

can guide me i'm doing wrong please? have latest version of jqgrid trirand.com , have copied files script directory of mvc3 project.
thank can provide.

as suggested oleg in comments, the open source version of jqgrid prerequisite of examples find around use of jqgrid asp.net mvc :


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -