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
saving in inline edit do not work
13/09/2011
12:13
Avatar
djkuddel
Member
Members
Forum Posts: 25
Member Since:
01/08/2011
sp_UserOfflineSmall Offline

Hello,

I have this sourcecode but it does not save my new values

$("#grid").jqGrid({ url:'url_to_send.php', datatype: "xml", height: 452, colNames:['Name', 'Description','id'], colModel:[ {name:'id',index:'Name', width:250,editable:true,editoptions:{size:10}}, {name:'Description',index:'Description', width:500,editable:true,editoptions:{size:10}}, {name:'ID',index:'ID', width:10,hidden:true,key:true}], rowNum:10, rowTotal: 2000, rowList : [10,20], rownumbers: false, gridview: true, pager: '#purl_to_send', sortname: 'Name', viewrecords: true, sortorder: "asc", caption: "", editurl:"url_to_send.php?add=true",onSelectRow: function(id) {
  if (id) {
    var grid = jQuery('#grid');
    if(id !== lastsel) {
      grid.saveRow(lastsel)
        .editRow(id, true);
      lastsel = id;
    }
    else {
      grid.saveRow(lastsel);
      lastsel = -1;
    }
  }

}, cellurl: 'url_to_send?rows=10&page=1', cellsubmit:'remote', cellEdit: true });    

$("#grid").jqGrid('navGrid','#pgrid',{del:false,add:true,edit:false,search:false,cloneToTop:true});   

can anyone help me?

Best regards,

DJ

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
37 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