Forum


18:56

Hi,
I am using the following function to lock a row as disabled:
beforeEditCell: function (rowid,name,val,iRow,iCol){
if (rowid == 100000){
jQuery("#jqg_"+id,"#list").attr('editable',false);}},
Which works fine on the first click of the rows' cell, but on second click it changes my initial value of "220.3" to 0.
How can I prevent jqGrid from changing the value?
Please and Thanks,
Alex
21:54

RowEdit works just the same. I am using:
cellEdit:true,
cellsubmit:'remote',
cellurl: 'data-handler',
treeGrid: true,
etc....
and making select rows un-editable (the parents in a treegrid).
It works perfectly already; makes the row readonly BUT for some reason it changes my value to 0.00 upon clicking the same cell twice.
I think it's because I am using "beforeEditCell" as an event, instead on "onSelectRow", but I can't use "onSelectRow" when cellEdit = true.
Makes sense ?
Thanks,
Alex
Most Users Ever Online: 715
Currently Online:
45 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