Forum
18:56
07/11/2012
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 ?
22:14
Moderators
30/10/2007
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.
12:20
07/11/2012
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 🙁
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66