Non working version

be = "<a href='#'>Select</a >";
be = "<a href='#' onclick='GetEnrollmentByCIP(\"" + (rowId['CIP']) + "\")'>Select</a >";
jQuery("#grdProgramsEnrolled").jqGrid('setRowData', ids[i], { ab: be });
This is what be is in the last row when loading the grid:
<a href='#' onclick='GetEnrollmentByCIP("52.0299")'>Select</a >
Why am I getting (2) Select statements from the above code?
This code only produces as single “Select” on a different screen
be = "<a href='#'>Student</a >";
be = "<a href='#' onclick='GetStudent(\"" + (rowId['UIC']) + "\")'>Student</a >";
jQuery("#grdStudentGrid").jqGrid('setRowData', ids[i], { ab: be });
This is what be is in the last row when loading the grid:
<a href='#' onclick='GetStudent("7910132816")'>Student</a >
The only difference that I can tell is that the string value being passed contains a decimal point? Does s
From what i understand, you want to call a function depending on the row data that is selected.
Instead of the onclick crammed there, you can use the custom formatter of jqgrid to do the same.
For details:: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter