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_TopicIcon
ImageButtons with jquery callback
02/09/2009
18:41
Avatar
Raif
Member
Members
Forum Posts: 17
Member Since:
03/09/2009
sp_UserOfflineSmall Offline

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

reaharik@gmail.com

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information