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
formedit; postit; reloadgrid question
06/08/2009
16:01
Avatar
Janooo
Member
Members
Forum Posts: 8
Member Since:
22/07/2009
sp_UserOfflineSmall Offline

Hi,

I am not sure if I do something wrong or this is a bug.

I have a grid with a form edit. Here is a sequence of events:

- select row 1 with value='abc', open edit, modify value='def', and submit

- the edit window stays open, the grid is reloaded and I see the new value 'def' in the row 1

- when I click on the next record in the edit window then the grid selects row 2 but the row 1 value resets to 'abc'

- when I click on the prev record in the edit window then the edit value is 'abc' instead of 'def'

- now if I cancel the edit and reload the page I get the proper value 'def' in the row 1

Any help appreciated.

Thanks,

Jano

07/08/2009
00:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Could you reproduce this on jqGrid Demo site?

I can not do this.

Also check that you have uniquie rowid's - Not sure, but I think that this is the problem.

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.

07/08/2009
13:16
Avatar
Janooo
Member
Members
Forum Posts: 8
Member Since:
22/07/2009
sp_UserOfflineSmall Offline

False alarm, I had some forgotten functionality in 'onSelectRow' event that caused the issue. Everything is fine now.

By the way. Your loader script includes json2.js but I was not able to find the file in the 3.5 download.

Regards,
Jano

Quick question: How I can check if my grid is behind a modal edit window?

11/08/2009
13:04
Avatar
Janooo
Member
Members
Forum Posts: 8
Member Since:
22/07/2009
sp_UserOfflineSmall Offline

Tony,

When the edit window stays opened then the formedit hidden fields are not being updated by postIt() after submit.

One solution (but not perfect due to the delay) is:

if (!rp_ge.closeAfterEdit) setTimeout(function() { fillData(postdata.id, $t, frmgr); }, 1000);

// at the end of postIt()/ajax/complete function

I have another solution similar to one I posted for the inlinedit.

Let me know if you are interested in that one.

Regards,

Jano

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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