Hi,
We currently have a MVC GridView with several columns. Two of these columns are textboxes and are linked so that when one is changed, the other one is also changed based on a calculation. The first column is also the first editable column from the grid. The second column is the last editable column (we have another column after that which is not editable).
If we edit the first cell and hit the "tab" key, the "ClientSideEvents.ValueChanged" event is fired. We then get the grid control related to this editor, get the editor from the other cell using "gridView.GetEditor()" and update its value with the "SetValue()" method.
If we do the same thing with the other cell, the "SetValue()" only works if we click on another cell from the same row or another row ; if we use the "tab" key to change cell (and, since it is the last column for the row, changes the line), the "SetValue()" does not change the value from the first cell.
We do not get any javascript error and the first cell of the next row is not updated : it simply does not update when using the "tab" key, but it works if we click on another cell/row in the grid
Do you have any suggestion regarding this ?
Regards,
Hello,
This information is insufficient to provide you with an appropriate solution.
Would you please elaborate on your scenario and describe the issue you have encountered in greater detail?
- Provide us with a sample project (at least the full GridView definition and related JavaScript code) that demonstrates the issue in action.
- Illustrate the actual and expected results with some screenshots.
Hi,
I have included a test project which reproduces the issue : the error happens when modyfing the "GrossAmount" field and hitting the "tab" to go to the next cell (here, the first editable cell of the next line). If we click on another cell or row instead of using the "tab" key, the "ratio" value is correctly changed. If we change the "Ratio" field, the "GrossAmount" is correctly modified