I am having a problem with a simplest of forms that uses a list view to contain fields. I have two NumericTextBox fields with format set to 'c0' (currency), one outside of the listview and another inside. I want both to look same like the one outside of the list. What's wrong and how can I fix that? Thanks a lot!
HTML:
<div data-role="view" data-title="Home" data-model="app.home" data-show="app.home.onShow" data-after-show="app.home.afterShow">
<div id="homeModel" class="form-view">
<form>
<div class="form-content-item">
<label>
<span>Income 2</span>
<input id="income2" data-bind="value: homeModel.fields.income" type="number">
</label>
</div>
<ul class="form-content" data-role="listview" data-style="inset">
<li>
<label>
<span>Income</span>
<input id="income" data-bind="value: homeModel.fields.income" type="number">
</label>
</li>
</ul>
<div class="button-group">
<a class="primary" data-role="button" data-bind="events: { click: homeModel.submit }">Results</a>
</div>
</form>
</div>
</div>
Script:
app.home = kendo.observable({
onShow: function () {
$("#income").kendoNumericTextBox({
format: "c0",
});
$("#income2").kendoNumericTextBox({
format: "c0",
});
},
afterShow: function () {}
});