我有這個劍道模板,我試圖將isDiscount布爾值轉換爲是/否。請建議我如何執行此轉換。Kendo模板 - 將布爾值轉換爲是或否
<script type="text/x-kendo-template" id="template">
<div id="details-container">
<h2>#= Name # </h2>
<em>#= Description #</em>
<dl>
<dt>Price: #= kendo.toString(Price, "c")#</dt>
<dt>Discount available: #= isDiscount #</dt>
</dl>
</div>
</script>
這可以幫助你http://stackoverflow.com/questions/15604605/kendo -grid-popup-popup-yes-no-combo-for-boolean –