I am trying to get the value from another column but instead it is returning this https://imgur.com/a/EtpqUcC. I am sure it is something i have messed up, can you please help me with this issue.
https://gist.github.com/tmoore88/bed8db0c67e837bc5587dca24a876724
Thanks, Tim
Hello,
Looks like it’s already in edit mode so content of cell (which is html input) is fetched.
Instead of following:
var val = jQuery(‘#list1’).jqGrid(‘getCell’, selr, ‘job_open’);
Use this:
var row = $('#list1').getRowData(selr); alert(row["job_open"]);
I tried your scenario again and this behavior exist. One solution is to set the job_open field as editable:false. It will not change it in edit box and you will get the value by above both ways.
I don’t exactly understand if you want to keep job_open as editable and if it’s changed by the user in edit mode then behavior for job_status need to clarified.