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.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top