Forum


18:41

03/09/2009

Hi, I used to have a custom format function in jqgrid 3.4. The function recieved the element ( the table cell ) that contained the cell value. I was able to manipulate the image path and so on. I can still get a image button with a href etc but because I no longer get the actual cell I can't attatch any jquery behavior to it.
so for a starter I want this
if (opts.colModel.name.toLowerCase().search("delete") >= 0){
$(cellval).click(function() { return confirm("Are you sure you would like to delete this Item?"); });
$.get(href, function(data) { theGrid.trigger("reloadGrid"); });
}
if this is a delete imagebutton then confirm the delete.
if they confirm then do an ajax update an dthen reload the grid.
this was pretty smooth in 3.4 and now I can't figure out how to achive it short of going in and hacking up the jqgrid source which I'd rather not.
Any help would be greatly appreciated,
Raif
Most Users Ever Online: 715
Currently Online:
39 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