I want to remove the template button based on value in row
I am using template refresh event.
it does not remove the button
what do I need to add to remove the template from the cell?
thanks
col.HeaderText("Delete").Template("<input type=\"button\" value=\"Delete\" data-toggle=\"tooltip\" title=\"Delete\" onclick=\"WorkOrderDatePartial_WorkOrderDateDelete_click(this)\" />").Width(75).Add();
function dgWorkOrderDate_TempleteRefresh(args) {
//alert('refresh');
// var val = args.data["Id"];
var cell = $(args.cell);
//render the button control
// if (val ==null || val==0 || val<1) {
cell.find(".template").css("visibility", "hidden");
cell.find(".template").remove();
}