0

How to show NO VALUE if column value is DB Null in angularjs ui grid. I tried using the code as below but it does not work. Am i missing anything.

cellTemplate: '<div class="ui-grid-cell-contents" ng-if="row.entity.VariancePercentage>{{row.entity.VariancePercentage | number:2}}</div><div class="ui-grid-cell-contents" ng-if="!row.entity.VariancePercentage">No Value</div>'
0

1 Answer 1

1

(moved from comment)

I think your brackets/quotes are a bit unbalanced. Maybe this does the trick:

cellTemplate: '<div class="ui-grid-cell-contents"><span ng-if="row.entity.VariancePercentage">{{row.entity.VariancePercentage | number:2}}</span><span ng-if="!row.entity.VariancePercentage">No Value</span></div>'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.