I am using a grid 2014 Q3 that has 4 columns: Service, Unit, Price, TotalPrice. The grid is in Batch Edit mode using client-side api.
Each column has <ItemTemplate> and <ItemEditTemplate>.
Column 1: Inside <ItemEditTemplate> I have a RadDropDownList.
Column 2: Inside <ItemEditTemplate> I have a RadNumericTextBox for Units.
Column 3: Inside <ItemEditTemplate> I have a RadNumericTextBox for Price.
Column 4: Inside <ItemEditTemplate> I have a RadNumericTextBox for TotalPrice.
I have tried to do the following for the last couple of days with little success:
1. Calculate total price when user enters a value in unit and/or price column.
2. Update column 4 with total price.
I subscribed to various client events, such as BatchEditClosed, BatchEditCellValueChanged. I noticed the client-side function is called 4 times, one for each cell.
Is there a way I can do the following:
1. Get the row once edit mode is complete/closed and have the function called once.
2. Get the values for each cell.
3. Calculate total price.
4. Update TotalPrice column with calculated value.
Could you please provide guidance with sample code snippet?
Thanks,
Tan
Each column has <ItemTemplate> and <ItemEditTemplate>.
Column 1: Inside <ItemEditTemplate> I have a RadDropDownList.
Column 2: Inside <ItemEditTemplate> I have a RadNumericTextBox for Units.
Column 3: Inside <ItemEditTemplate> I have a RadNumericTextBox for Price.
Column 4: Inside <ItemEditTemplate> I have a RadNumericTextBox for TotalPrice.
I have tried to do the following for the last couple of days with little success:
1. Calculate total price when user enters a value in unit and/or price column.
2. Update column 4 with total price.
I subscribed to various client events, such as BatchEditClosed, BatchEditCellValueChanged. I noticed the client-side function is called 4 times, one for each cell.
Is there a way I can do the following:
1. Get the row once edit mode is complete/closed and have the function called once.
2. Get the values for each cell.
3. Calculate total price.
4. Update TotalPrice column with calculated value.
Could you please provide guidance with sample code snippet?
Thanks,
Tan