This question is locked. New answers and comments are not allowed.
Hello .. I have a grid with 12 normal input rows and a "Total" row . The edit is in cell .
See Image : http://imageshack.us/photo/my-images/96/gridzo.jpg/
When one cell is edited , the "Total" cell of that row updates he's value :
var grid = $("#PlantBudgetGrid").data('tGrid');
grid.data[12].TotalHical += value;
grid.$rows()[12].childNodes[1].innerText = grid.data[12].TotalHical;
The problem is that if the user inserts a value in the 12 row (the Total) then I have to add the Total/12 value to all
cells from that column. When I submit the changes .. to the controller .. I only get the changed values that the
user inserted .. not the ones that I calculated and edited .
Solutions : When I insert the value to the last row (Total) I do a post to the server , save new values in the database and rebind the grid
Problem for this : The update will make the "Cancel Changes" button useless
Is there a more easy way to do the jQuery insert of that in grid cell and set the dirty flag so this cells will be sent to the server on submit?
See Image : http://imageshack.us/photo/my-images/96/gridzo.jpg/
When one cell is edited , the "Total" cell of that row updates he's value :
var grid = $("#PlantBudgetGrid").data('tGrid');
grid.data[12].TotalHical += value;
grid.$rows()[12].childNodes[1].innerText = grid.data[12].TotalHical;
The problem is that if the user inserts a value in the 12 row (the Total) then I have to add the Total/12 value to all
cells from that column. When I submit the changes .. to the controller .. I only get the changed values that the
user inserted .. not the ones that I calculated and edited .
Solutions : When I insert the value to the last row (Total) I do a post to the server , save new values in the database and rebind the grid
Problem for this : The update will make the "Cancel Changes" button useless
Is there a more easy way to do the jQuery insert of that in grid cell and set the dirty flag so this cells will be sent to the server on submit?