Hello, I have a problem with my code.
In mi command i try to use a template whit a "If" statement, but doesn't work, what is wrong?
command:
{
text: "Work",
click: function (e) {
angular.copy(this.dataItem($(e.currentTarget).closest("tr")), vmOrd.DataRel);
$scope.$broadcast('loadData', vmOrd.DataRel);
$scope.$apply();
},
template: '#if(Quantity != 0){# <a href="\\#" class="k-button k-button-icontext k-grid-Work"><span class="fa fa-2x fa fa-pencil-square-o text-default"></span></a> # } else {# <a href="\\#" class="k-button k-button-icontext k-grid-Work"><span class="fa fa-2x fa fa-pencil text-default"></span></a> #} #',
},