Hello. I am using asp net mvc 5 with igniteui 2016.2
I have 4 column which is A, B, C, D. Column C is read only and the values depends on column B. So, if I am in edit mode (row) and type in column B, it will do an ajax request to get value for column C. How this can achieved with igniteUI?
In common javascript I just need add onkeypress event to cell B, do an ajax call if I press enter in column B to server and fill column C with ajax result which is column C is readonly.
Thanks in advance
Hello Johnson,
It can actually be done much easier by adding an unbound column to the grid, which gets its value from another column, via the formula option. This way the value will be calculated on every text change of the column.
I have attached a working sample, demonstrating how this is done.
Please feel free to contact me if you have further questions.
Regards,Ivaylo HubenovEntry-level developer
can you give an example?
The procedure is like the one in javascript - add a keypress/keydown on the text editor of that column (in the editorOptions of igGridUpdating's columnSettings) and set the new value of the other cell via the setCellValue method.