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
Possible bug in delfunc overriding
20/06/2011
08:54
Avatar
Bugzee
Member
Members
Forum Posts: 7
Member Since:
21/04/2011
sp_UserOfflineSmall Offline

The delfunc overridden as follows

delfunc: function (rowid)
{
    $("#grid1″).jqGrid('delGridRow', rowid,
    {
        serializeDelData: function (postdata)
        {
            postdata.a = "grid1_event";
            postdata.id = $("#grid1″).jqGrid("getRowData", rowid)["col1"].toString();
            var l = { b: postdata };
            postdata = JSON.stringify(l);
            return postdata;
        }
   })
}

This works ok, the modal form is shown and clicking the delete button successfully deletes the record.
But the problem comes when I try to delete another record.
The model form shows but clicking the delete button causes a error at  
"$("#grid1″).jqGrid("getRowData", rowid)["col1"].toString();". It seems that, after debugging in VS,

the rowid value is my old rowid value (from the previous delete), hence the rowid value does not reflect the new rowid.

I don't have this problem in my "editfunc" because "recreateForm" is true. But there is no such option here.
Is this a bug or am I using "delfunc" the wrong way?

I'm using jqgrid 4.1 and jquery 1.6.1.

Same post here: /blog/?page_id=393/help/delfunc-overriding/

12/07/2011
11:08
Avatar
magonye
Member
Members
Forum Posts: 4
Member Since:
04/06/2009
sp_UserOfflineSmall Offline

It also happens to me. 

I hope someone could help us.

Using jqgrid 4.1.1 and jquery 1.6.1.

Thank you.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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