How To Show DropDownList in JQGRID ASP.Net MVC Razor
here is the solution:
jQuery("#jqgriddemo").jqGrid({
datatype: 'local',
colNames: ['name','age'],
colModel: [{ name: name, index:
name, width: "16%",
align: "center" },
{ name: 'age', index:
'age', width: "12%",
align: "center",
editable:true, viewable:
true, edittype:
'select', editoptions:
{ value:
"1:1;2:2;3:3;4:4;5:5;6:6;7:7;8:8;9:9;10:10"} },
],
rowNum: 5,
rowList: [5, 10, 15],
viewrecords: true,
pager: '#pager2',
sortname: 'Score_Type',
editurl: '/urladress',
forceFit: true,
cellEdit: true,
cellsubmit: 'clientArray',
afterSaveCell: function (rowid, name, val, iRow,
iCol) {
var age = jQuery("#jqgriddemo").jqGrid('getCell', rowid, iCol);
}
}).navGrid('#pager2', { edit:
false, add: false, del:
false });
I want To populate jqgrid dropdown from SQL Server.
ReplyDeletecan any one help Thank You
I m using Asp.Net MVC 4