Forum


14:58

25/08/2012

Hi all,
I have a problem which I just can't seem to solve. Add, Edit, Delete dialog are not shown. Can anyone help me?
$("#grid").jqGrid({
url: "<?php echo base_url();?>countries/jqgrid_show",
editurl: "<?php echo base_url();?>countries/jqgrid_update",
datatype: "JSON",
mtype: "GET",
height: 300,
width: 1000,
colNames:['Country Name', 'Action'],
colModel:[
{name:'name', index:'name', width:200, search: true, editable: true, edittype:'text' },
{name:'action', index:'action', width:50, search: false, editable: false, sortable: false }
],
pager: $('#pager'),
viewrecords: true,
multiselect: false,
rowNum:10,
rowList:[10,20,30],
loadonce: false,
editable: true,
caption: " Countries"
});
$("#grid").jqGrid(
'navGrid',
'#pager',
{
add: false,
edit: true,
del: true,
search: false,
}
);
$("#grid").jqGrid('filterToolbar', {stringResult: true, searchOnEnter: false, defaultSearch: 'cn', ignoreCase: true})
// Edit Row
$("#edit_grid").click(function(){
var gr = $("#grid").jqGrid('getGridParam','selrow');
if( gr != null )
$("#grid").jqGrid('editGridRow', gr, {height:180, width:180, reloadAfterSubmit:false});
else alert("Please Select Row");
});
14:34

Moderators
30/10/2007

Hello,
Maybe you use a jQuery 1.8. This is known problem and it is fixed.
We will publish a bug fix version after day or two.
Best Regard
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
53 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66