I have implemented a combobox in jqGrid.The plugin which is used as follows:
I got a problem in this,as when I click on Add,I will get comboxbox but when I type in it and click on submit,I am not able to get the value what I type to jqGrid.I am attaching my jqgrid as follows:
var listData = [
{ id: "1",listName: "List1",level: "level1"},
{ id: "2",listName: "List3",level: "level3"}
],
$listgrid = $("#list");
$listgrid.jqGrid({
datatype:'local',
data: listData,
colNames:['id','Name','Level'],
colModel:[
{name:'id',index:'id',width:70,align:'center',sorttype: 'int',hidden:true},
{name:'listName',index:'listName', width:65,editable: true, formatter: 'select',
edittype: 'select', editoptions: {
value: 'list1:List1;list2:List2;list3:List3',
dataInit: function (elem) {
setTimeout(function () {
$(elem).combobox();
$( "#toggle" ).click(function() {
$(elem).toggle();
});
}, 50);
},
}
},
{name: 'level', index: 'level', width: 105, align: 'center', editable: true,
edittype: 'select', editoptions: {
value: 'level1:level1;level2:level2;level3:level3'
}
}
],
rowNum:10,
rowList:[5,10,20],
pager: '#list_pager',
gridview:true,
ignoreCase:true,
rownumbers:true,
sortname: 'id',
viewrecords: true,
sortorder: 'desc',
caption: "Soft Skills",
height: '100%',
width:'750',
editurl: 'test.aspx',
gridComplete: function() {
$("#list").addClass("nodrag nodrop");
$("#list").tableDnDUpdate();
}
});
$listgrid.jqGrid('navGrid', '#list_pager', {edit: true, add: true, del: false, search: false, refresh:false},{height:280,reloadAfterSubmit:false},{reloadAfterSubmit:false});
Please let me know how to get the value which I typed to the jqGrid. is it possible?if it is not possible,is there any comboxbox will work for jqgrid.I have search for other comboxbox and try to implement the following,which I am not able to work in jqGrid.
Is it possible to use this in jqGrid,Please can anyone Help Me.
Thanks in Advance