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
saveRow not work (without error)
Tags: SaveRow
31/01/2013
18:56
Avatar
istiti
Member
Members
Forum Posts: 29
Member Since:
07/11/2012
sp_UserOfflineSmall Offline

Hello I have celledit on true and it works fine even save on server works good  too when I press key ENTER but... but the problem is: I try to setRowData when I click on <button> like this : 

$("button").click( function(){

var randomColor = '#'+Math.floor(Math.random()*16777215).toString(16);

for(var i = 0; i < idsOfSelectedRows.length; i++)

{

var suSet=grid.jqGrid('setRowData',idsOfSelectedRows[i],{group:idsOfSelectedRows[0]},{"color":randomColor});

grid.jqGrid('saveRow',"1",

{

"url" : "stockage.php",

"errorfunc":function(){

alert('test');

}

});

}

grid.resetSelection();

});

ALL works just function "saveRow" don't save something on my server !!! my  url: 'stockage.php' is like 'editurl' and I haven't error with 'errorfunc'

Do you have some answer for this please ? in firebug I have no error too 🙁 where is the probleme I do this function on "loadComplet" 🙁 Am I writing/using false code ?

31/01/2013
22:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I'm not 100% sure, but saveRow works only if the row is edited before this - i.e a editRow is called and then saveRow.

I think it is better in your case to use a simple jQuery $.ajax to save the row on server

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.

01/02/2013
11:15
Avatar
istiti
Member
Members
Forum Posts: 29
Member Since:
07/11/2012
sp_UserOfflineSmall Offline

Oh damage 🙁 I just want sagve my rows after "setRowData" but it not works it's damage 🙁

Do you have an exemple/demo please for an" ajax call"  for saving my rows ? Cause I don't know how it works, thank's tony

01/02/2013
12:20
Avatar
istiti
Member
Members
Forum Posts: 29
Member Since:
07/11/2012
sp_UserOfflineSmall Offline

I tray to use your example on demo page: http://trirand.com/blog/jqgrid.....qgrid.html

  • Manipulating 
    •  Grid Data

When you try to update "Update amounts in row 11" I just want to save it on server side. I tray to do a trigger for simulating keypress : 13 on editRow and after setRowData 🙁

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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