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
How to define errorfunc
09/11/2009
17:13
Avatar
Andrew
Guest
Guests

Hi,

I know this is probably straight forward but I cannot figure out where or how to define the errorfunc. I have the following defined in my jqgrid definition for inline editing:

    ondblClickRow: function(id){
        if(id && id!==lastSel){
            jQuery('#grid').restoreRow(lastSel);
            lastSel=id;
        }

        jQuery('#grid').editRow(id, true, errorfunc); 
    }

I want to use the errorfunc but I canot figure out where or how to declare it.

I have read the documentation and it is not clear to me on how to use it.

Any help would be greatly appreciated.

Regards
Andrew

09/11/2009
22:32
Avatar
acgee
Member
Members
Forum Posts: 8
Member Since:
10/11/2009
sp_UserOfflineSmall Offline

I think I figured it out.

editRow(rowid, true, null, null, null, null, null, errorfunc)

outside of grid definition

function errorfunc(rowid, status) {

  //do stuff

}

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
46 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