Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Having troubles with setCell using a button
08/08/2010
23:47
Avatar
jin
Member
Members
Forum Posts: 5
Member Since:
02/03/2010
sp_UserOfflineSmall Offline

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/08/2010
10:55
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information