Forum


10:50

15/10/2009

hi,
im integrating jqgrid with CI, done that in this http://www.trirand.com/blog/jq.....grid.html#
but i am unable to get it the edit row in the event feature. I've done all necessary procedures.. btw- i am able to populate my grid using json datatype.
anyone please help me. ive spent 4hr figuring this out
thanks in adv
-Dean
19:28

Moderators
30/10/2007

Hello,
Nobody will help you if you just say not work.
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.
10:22

15/10/2009

var lastsel;
$("#listFlex").jqGrid({
url: root + mod + '/listview2',
datatype: "json",
colNames:['Role #','Role Code','Role Description'],
colModel:[
{name:'role_id',index:'role_id', width:50, align:"center"},
{name:'role_code',index:'role_code', width:80},
{name:'role_desc',index:'role_desc', width:100,align:"left"}
],
rowNum:10,
rowList:[10,20,30],
pager: '#pager2',
sortname: 'role_id',
width: 700,
height: "200",
viewrecords: true,
sortorder: "asc",
editurl: "sec_role",
caption: "Using events example"
}); //jQuery("#listFlex").jqGrid('navGrid','#pager2',{edit:true,add:true,del:true});
jQuery("#ed4").click( function() {
jQuery("#listFlex").jqGrid('editRow',"1");
this.disabled = 'true';
jQuery("#sved4").attr("disabled",false);
});
jQuery("#sved4").click( function() {
jQuery("#listFlex").jqGrid('saveRow',"1", checksave);
jQuery("#sved4").attr("disabled",true);
jQuery("#ed4").attr("disabled",false);
});
function checksave(result) { if (result.responseText=="") {alert("Update is missing!"); return false;}
return true; }
this is my code in js. im unable to save, edit or even delete the row.
ANY POINTERS WILL DO., im really frustrated here :((
thanks
11:43

Moderators
30/10/2007

Hello,
You missed a important part in the colModel. I do not see where you define that the field is editable.
Also to work this you should set editable:true ion colModel.
I recommend you to read first the documentation about editing
http://www.trirand.com/jqgridw.....mmon_rules
Best Regards
Tont
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:
62 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