hi,
iam trying to create a Calculated Cell in my webgrid
so what iam trying to do is when i open edit mode and i have two columns Quantity and Price , and when i change the Quantity cell value the Price cell multiply automatically in the cell in the edit mode
is this possible ? i need help !
Hello Mark,
I created a sample project, which shows a possible way to create cells with calculated values.The values are calculated at startup time based on the initial values an also the values are recalculated when a cell value is changed.
Let me know if I may be of any further assistance.
Sincerely,Radko
2451.WebApplication1.zip
thank you for the reply
but i want the events triggers when the cursor is changed or moved to the next cell without exiting the edit mode !
I am not sure I fully understand your scenario.What do you mean by "the cursor is changed" ?Also what kind of editing are you using (cell editing, row editing) ?If you are using row editing, this kind of editing does not have client event raised when you switch between the cells on a row, so is will not be possible to hook to such event.
Ragards,Radko
iam using the row editing !
i tried this but it trigger all the inputs in the row and i want it to works only in a specific coloumn
$(function () {
//Attempt to commit changes when focus of input field has changed.$(document).on("blur", "input.igg_EditCell", function (event) {
alert("test");
});});
The WebDataGrid grid does not have a client side event raised when switching between cells in row editing mode.My suggestion is to use the cell editing mode (if possible) as in the sample application I provided earlier.
RagardsRadko