As I understand it, when you have locked column in the grid there will be two separate table elements for the data items - one for locked columns and one for the regular ones. I haven't stumbled across how to address the two separate table elements separately. The code below works beautifully until you start locking columns. If any columns are locked, the fieldName will wind up containing the name of an adjacent column.
I need to determine how to get the correct column names during edit regardless of their locked/unlocked condition. Any help or suggestions are greatly appreciated. -Darron
<script>
var currentItem;
var currentColumn;
function grid_edit(e) {
var grid = this;
var model = grid.dataItem(grid.current().closest("tr"));
currentItem = model;
var fieldName = grid.columns[e.container.index()].field;
currentColumn = fieldName;
if (currentColumn == "Contact" || currentColumn == "ShipFrom" || currentColumn == "ShipTo")
{
showModalPopUp(currentColumn);
}
} </script>