I used this link to create a basic jqgrid:
This is my code:
& lt; Script type = "text / javascript" & gt; JQuery (document) .ready (function () {jQuery ("# list") .jqGrid ({url: '/ home / gridata', datatype: 'jason', mitype: 'get', callname: ['productivity 'Product name', column name: [{name: 'produced', index: 'productivity', width: 40, align: 'left'}, {name: 'product name', index: 'product name', width: 40, Alert: 'left'}], Pager: jQuery ('# pager'), line number: 10, line list: [5, 10, 20, 50], Sort name: 'Id', Sort: Desc ", viewrecords: true, Imgpath: '/ script / theme / a Coffee / images', caption: 'my first grid'});});
Public functioning GridData (string sidx, string sound, int page, int rows) {list & lt; Products & gt; List Products = New List & lt; Products & gt; () {New Product () {ProductName = "koekies", ProductID = 1}, New Product () {ProductName = "snoepjes", ProductID = 2}}; Jason (List Products, Jason Yunus Behavior Alowweight); }
Have you read the entire post that you have linked? Jason is returning back to you, looks very different from him.
public action GridData (string sidx, string sound, int page, int queue) {var jsonData = new {total = 1, / / we will implement page = page later, record = 3 , // apply rows later = new [] {new {id = 1, cell = new} ["1", "-7", "Is it good new {id = 3, cell = new} [] {"Is this a clear rip?"}}, New {id = 2, cell = new [] {"2", "15" 3 "," 23 "," Why is sky blue? "}}}} ; Jason returned (Jessandata, Jansenweivest Behavior, Elove Gate); } This ID field is important, JSGID likes to know the line number you are adding.
Comments
Post a Comment