Forum
Topic RSS
06:17
24/11/2009
OfflineHi,
Can someone please let me know what I'm doing wrong?
When I use the following code, I get an error ("no url is set") when I submit the cell edit.
screen_res = ($(document).width())*0.99;
col = parseInt((percent*(screen_res/100)));
return col;
}
// Admin table
var admingrid = jQuery("#sadmin_table").jqGrid({
url:'includes/ajax/json.sadmin.php',
datatype: "json",
height:'auto',
width: getWidthInPct(99),
rownumbers: false,
colNames:['Name','Value', 'Type', 'Options','Default','Description'],
colModel:[
{name:'name',index:'name', width:40, editrules:{edithidden:false, required:true}, editable:false},
{name:'value',index:'value', width:30, editable:true},
{name:'type',index:'type', width:20,editable:true, edittype:"select",editoptions:{value:"enum:enum;int:int;varchar:varchar"}
},
{name:'options',index:'options', width:20, editable:false},
{name:'default',index:'default', width:30, editable:false},
{name:'description',index:'description', width:280,editable:true,edittype:"textarea", editoptions:{rows:"10",cols:"40"}}
],
gridview: true,
emptyrecords: "No Results Found",
forceFit: true,
rowNum:10,
rowList:[10,20,30,40,50],
sortname: 'name',
viewrecords: true,
sortorder: "asc",
cellEdit: true,
editurl: 'includes/ajax/json.sadmin.php?edit=1',
mtype: "POST",
pager: '#sadmin_pager',
recordtext: "{0} – {1} of {2}",
pgtext: "",
});
// resize_sadmin_grid();
$(window).resize(resize_sadmin_grid);
// Set pager options
jQuery("#sadmin_table").jqGrid('navGrid','#sadmin_pager',{add:false,edit:false,del:false,search:false,refresh:false});
// Remove rollup icon
$('.ui-jqgrid-titlebar-close','#gview_sadmin_table').remove();
12:49
Moderators
30/10/2007
OfflineFor 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.
19:46
Moderators
30/10/2007
OfflineHello,
This is out of jqGrid forum. Imagine what will say people that use ASP or JSP ....
I'm not expert of these. You have the api, you know what is posted, then get the post and do it your way with PHP
Regards
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: 994
Currently Online:
22 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
Log In
Home