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_Related Related Topics sp_TopicIcon
cellurl? No URL Set?
23/01/2012
04:12
Avatar
cheech74
Member
Members
Forum Posts: 10
Member Since:
31/12/2011
sp_UserOfflineSmall Offline

I have this set as code in jqgrid, but changes are not being saved to database

$(function(){    $("#rota").jqGrid({    
url:'example.php',    
datatype: "json", 
mtype: 'POST',    
colNames:['Date', 'HPJ', 'Recycler','CCTV','Assistant'],    
colModel:[     
{name:'date',index:'date', width:90,editable:true},     
{name:'hpj',index:'hpj', width:100,editable:true},      
{name:'recycler',index:'recycler', width:100,editable:true},      
{name:'cctv',index:'cctv', width:100,editable:true},   
{name:'assistant',index:'assistant', width:100,editable:true}     ],
 rowNum:10,    
 rowList:[10,20,30],
 sortname: 'date',  
 viewrecords: true,   
 sortorder: "desc", 
 caption:"Weekend Call Out Rota", 
 pager : '#navGrid',   forceFit : true,
 cellEdit: true, cellsubmit :'remote',   
 cellurl : 'example.php'  });
 jQuery("#rota").jqGrid('navGrid','#navGrid',{edit:true,add:true,del:true});  });
 
I am also unable to add new rows: no url set

23/01/2012
10:29
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You should either select – Form Editing

/jqgridwiki/doku.php?id=wiki:form_editing

or

Cell editing

/jqgridwiki/doku.php?id=wiki:cell_editing

but not both as you have do in your code.

Regards

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.

25/01/2012
18:22
Avatar
cheech74
Member
Members
Forum Posts: 10
Member Since:
31/12/2011
sp_UserOfflineSmall Offline

Right I have now gone for the form editing - how do I then get stuff to save to database?  If I use a editurl with php, what needs to go on the php file?

The examples & help files all seem truncated, without any full examples

Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information