Update data in edit window in JQGrid

25 Views Asked by At

I'm looking for a way to update the value in a field on the edit window based on clicking a checkbox in the edit window.

I can get it to change the value, but the edit window doesn't update.

I use this to change the value:

$("#Table" + id).jqGrid("setCell", selectedRowId, "DataPartnerName", "Hello");

The value ends up being changed in the actual grid, but the text field in the edit window stays the same and doesn't change until I close the window (not submit) and then reopen it. If I click submit, it goes back to the original value because it never changed in the field in the edit window.

Is there a way to get the edit window to update or possibly have it close and then reopen when the checkbox is checked?

0

There are 0 best solutions below