I have a grid pop-up editor defined, which uses a numeric textbox. I'm trying to get this to show only integers, but I'm not having any luck.
From other forum posts, data-format="0" should work, but this breaks the grid, with an 'e.slice is not a function' error.
Currently it is defined as:-
<p><label>Year:</label><input type="text" name="Year" data-type="number" data-bind="value:Year" data-role="numerictextbox" data-spinners="false" data-decimals="0"/></p>
This works fine, except shows two decimals.
If I change it to:-
<p><label>Year:</label><input type="text" name="Year" data-type="number" data-bind="value:Year" data-role="numerictextbox" data-format="0" data-spinners="false" data-decimals="0"/></p>
The grid stops working, and the error is raised.
How can I get it to work?