Forum

July 12th, 2025
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_TopicIcon
Delete function problems
04/12/2009
15:02
Avatar
Savio
Guest
Guests

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.

05/12/2009
15:34
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information