There are several ways to do this, but I think it’s easiest to use conditional patterns (either for a row or for a specific column). Using them, you can evaluate other column values based on these render buttons. I started with a sample column template and added another column for editing:
$("#grid").igGrid({
//...
columns : [
{
headerText : "",
key : "Delete",
dataType : "string",
width : "10%",
unbound : true,
template : "{{if ${MakeFlag} }}<input type='button' onclick='deleteRow(${ProductID})' value='Delete' class='delete-button'/>{{/if}}"
}
//...
]
});
jSFiddle: http://jsfiddle.net/damyanpetev/dVLrA/
You can use this template in the actual column that you are evaluating if its sole purpose is a flag to enable buttons. If you want more flexibility or use more than one sequential condition to put both buttons in the same column, you can use jsRender instead, as in this one: http://jsfiddle.net/damyanpetev/85ZGS/
: localSchemaTransform false, , .
: