Dear Sir/Madam,
I have a WebDataGrid having columns "TimeIn", "TimeOut", and "Duration" etc. When leaving the cell TimeOut the value in Duration should be auto populate.
Now when TimeOut exitedEditingMode, I need to pass the TimeIn and TimeOut value as parameter to a server function, in order to calculate the Duration and the rest(The Calculation is base on many conditions so need to be done in server side procedures). After getting a datatable from server, system need to assign back all the values to the cell.
I'm not sure how to call the server function in the ExitedEditingMode javascipt. Please advise. Thanks a lot.
function grd_MHC_ExitedEditMode(sender, e) {
var cellKey = e.getCell().get_column().get_key();
if (cellKey == "TimeOut")
{
var TimeInCellText = e.getCell().get_row().get_cellByColumnKey("TimeIn").get_value();
var TimeOutCellText = e.get_Editor().get_currentValue();
var cellToUpdate = e.getCell().get_row().get_cellByColumnKey("Duration");
.....
}
Hello Syed,
Thank you for posting in our community.
I noticed that you already have a case created for this question with an ID of CAS-140674-S8M0M4. I am currently looking in this case for you and will get back to you as soon as I have any new information regarding this matter.
Please feel free to continue sending updates to this case at any time and do not hesitate to contact me if you have any additional questions regarding this matter.
Dear Vasya,
Actually this question is refer to case-140751-X1H0D7, not CAS-140674-S8M0M4, there are different issues.
Therefore, the case-140751-X1H0D7(the issue posted here) still awaiting for solution.
Rgds,
Any Update?
Hello syed,
I've noticed that our colleague Petar answered to your question from case with number (CAS-140674-S8M0M4). Could you please keep in mind that its not recommended to open a new case about the same scenario twice, this is for better communication and history tracking. Please have a look at the attached modified sample that Peter provided.