Forum
Topic RSS
15:02
HI! I have a problem, had searched in doc but didn't found....
- I have these fields in grid: "code, name, qtd, status".
- After select a row, i click in the delete button and submit the command... then i created a script (php) to write a file with all POST and GET params sent....
- The file has a "print_r" that show the jqGrid just send the vars "oper" that can be del, add and edit AND the var ID! But this ID var isn't the code value field... it is just the grid row number....
- I need to recieve by the Delete the CODE of selected field...
I tried to send by setting the "editurl" option, but it isn't works, cause i can't set editurl after the grid is completed load.
Please, help me by the solution with how can i send my code field in the del command.
Regards, Sávio.
15:34
Moderators
30/10/2007
OfflineHello,
It seems like you do not have set wich row should act as id.
In order to resolve:
set in colModel
{name:'code' .... key:true...}
This will cause jqGrid to set as id the value of code, then you can grab id value which is the code value.
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.
Most Users Ever Online: 994
Currently Online:
40 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
Log In
Home