hello,
i'm newbie in jqGrid. i use 3.5.3 version.
i got strange result after applying config.js
in any navGrid config case it's duplicating all buttons so
resulting html looks like
what's wrong?
—— config.js ———–
jQuery(document).ready(function(){
jQuery("#list").jqGrid({
url:'/adm/alerts/list',
editurl:'/adm/alerts/list',
datatype: 'json',
mtype: 'GET',
colNames:['Id','Creation Data','Email','Query','Location','Validated','Interval','Sent Email'],
colModel :[
{name:'id', index:'id'},
{name:'created', index:'created'},
{name:'email', index:'email', editable:true, edittype:'text'},
{name:'query', index:'query', editable:true}, {name:'location', index:'location', editable:true},
{name:'status', index:'status', editable:true, edittype:"select", editoptions:{value:"VALIDATED:VALIDATED;NOT VALIDATED:NOT VALIDATED"}},
{name:'interval', index:'interval', editable:true, edittype:"select", editoptions:{value:"DAILY
AILY;WEEKLY:WEEKLY;MONTHLY:MONTHLY"}},
{name:'last_check', index:'last_check', editable:true}
],
ondblClickRow: function(id) {
if (id && id != lastSel) {
jQuery("#list").restoreRow(lastSel);
jQuery("#list").editRow(id, true);
lastSel = id;
}
},
pager: '#pager',
rowNum:20,
autowidth:true,
editCell:true,
rowList:[10,20,30],
sortname: 'id',
sortorder: 'desc',
viewrecords: true,
caption: 'Browse Alerts'
}).navGrid();
});
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top