In general, you should avoid eval()
when possible. You can replace this eval()
line:
var optionsObj = eval("grid.jsonModeMgr._jsonDataAndOption." + colName + "_Options");
with this:
var optionsObj = grid.jsonModeMgr._jsonDataAndOption[colName + "_Options"];
To access a property by a calculated string name or a string contained in a variable, you can use the [string here]
syntax instead of the dot syntax.