Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
Update column value from other column with ajax result
posted

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

Parents
No Data
Reply
  • 1235
    posted

    Hello Johnson,

    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.

    Please feel free to contact me if you have further questions.

    Regards,
    Ivaylo Hubenov
    Entry-level developer

Children