{
name: ‘SUPER_CLIENT’,
index: ‘SUPER_CLIENT’,
align: ‘left’,
width: 150,
stype: ‘text’,
sortable: true,
editable: true,
editrules: { required: true },
edittype: ‘select’,
editoptions: {
aysnc: false,
dataUrl: ‘../../../Forms/Admin/MasterModule/AdminCommonHandler.ashx?Page=ProcessMaster’,
buildSelect: function (data) {
var json = $.parseJSON(data);
var s = ‘<select>’;
s += ‘<option value=””>–Select–</option>’;
$($.parseJSON(data)).map(function () {
s += ‘<option value=”‘ + this.COMPANY_NAME + ‘”>’ + this.COMPANY_NAME + ‘</option>’;
});
var sel_id = $(‘#jQGridDemo’).jqGrid(‘getGridParam’, ‘selrow’);
var value = $(‘#jQGridDemo’).jqGrid(‘getCell’, sel_id, ‘USER_ID’);
//alert(value);
$(‘#COMPANY_NAME’).val(value);
return s + “</select>”;
},dataInit: function (elem) { $(elem).width(141); }
},
formoptions: { elmsuffix: ” }
},
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top