Forum


23:47

02/03/2010

Hi,
I am trying to use a button to change the value of a cell but it sends null to the server.
jQuery("#grid").jqGrid('navButtonAdd','#grid_nav',
{
caption: "Soft",
title: "Set Limit as Soft",
onClickButton : function ()
{
jQuery('#grid').jqGrid('setCell', r, c,'test',{'font-weight': '',color: 'blue','text- align':''});
}
});
if i check the response the variant_value=null when it should be test.
{"id":"49″,"criteria":"test","variant":"Owner","variant_value":null}
Another issue i have with cellEdit is if i change
jQuery('#grid').jqGrid('setCell', r, c,'test',{'font-weight': '',color: 'blue','text- align':''});
to
jQuery('#grid').jqGrid('setCell', r, c+1,'test');
so that it modifies the value in the next column it does not even make a call to the edit url.
Thanks
10:55

Moderators
30/10/2007

Hello,
I think you have mixed setCell with cell editing - (editCell, saveCell, restorelCell..) There is a big difference on this.
Please refer here for setCell method:
http://www.trirand.com/jqgridw.....ki:methods
and here for cell editing
http://www.trirand.com/jqgridw.....ll_editing
Reading documentation first is a good practice
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: 715
Currently Online:
154 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