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_Related Related Topics sp_TopicIcon
Click to edit row, wrong row gets edited
05/08/2010
01:54
Avatar
Ricardo Montalban
Member
Members
Forum Posts: 9
Member Since:
28/05/2010
sp_UserOfflineSmall Offline

In a grid, when I click on a row and the edit it everything works fine but only for the first row I click. If I then click on a different row to edit it, the changes will be applied to the first row I edited! What could cause this?

Basically whichever row I click first will be the only row I can edit. All other rows will popup their editing window, filled with the correct data, but when I hit "save" the changes will be applied to whichever row I had first edited. Help?

EDIT: some more info... it seems that one field in my grid is not updating because its value never changes from the first time the edit button is clicked. I have one field that uses:

editype: 'custom', editoptions: {custom_element:myelem,custom_value:myval}}

and myval is simply:

function myval(elem){return elem.val}

The first time you click a row to edit it myval returns the correct value (let's say it is 9). The next row you click to edit has the correct values except that the myval is still 9 even though it should be the value of that particular row. It seems that myval is set when you click the "submit" button on the form and after that it is set as soon as you click the "edit" button to begin editing.

06/08/2010
00:43
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hi Ricardo!

How you already knows from http://stackoverflow.com/quest.....3 the solution is to use recreateForm: true parameter. I added the answer also in the forum to make other people easy to find solution of the problem.

Best regards
Oleg 

06/08/2010
02:54
Avatar
Ricardo Montalban
Member
Members
Forum Posts: 9
Member Since:
28/05/2010
sp_UserOfflineSmall Offline

Thanks Oleg. That Stackoverflow question was mine and I thank you for answering it so effectively. You really helped me out there.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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