or
var model = kendo.observable({<br> prices: [<br> { hours: 24, firstYear: 7500, advanced: 8200 }, { ... }<br> ],<br> pricesForStudents: [<br> { hours: 24, firstYear: 6000, advanced: 6300 }, { ... }<br> ],<br><br> ... other properties<br>});addPrice: function() {<br> this.get("prices").push({});<br>},<br>removePrice: function(e) {<br> this.get("prices").remove(e.data);<br>}<br>removePriceButtonEnabled: function() {<br> return this.get("prices").length > 1;<br>}addPriceForStudents: function() {<br> this.get("pricesForStudents").push({});<br>},<br>removePriceForStudents: function(e) {<br> this.get("pricesForStudents").remove(e.data);<br>}<br>removePriceForStudentsButtonEnabled: function() {<br> return this.get("pricesForStudents").length > 1;<br>}<script id="regularPricing" type="text/x-kendo-template"><br> <tr><br> <td><input type="number" class="numerid-box single-line" data-bind="value: hours" data-role="numerictextbox" data-format="n0" /></td><br> <td><input type="number" class="numerid-box single-line" data-bind="value: firstYear" data-role="numerictextbox" data-decimals="2" /></td><br> <td><input type="number" class="numerid-box single-line" data-bind="value: advanced" data-role="numerictextbox" data-decimals="2" /></td><br> <td><button data-bind="enabled: removePriceButtonEnabled, click: removePrice" data-role="button">Remove</button></td><br> </tr><br></script><script id="regularPricing" type="text/x-kendo-template"><br> <tr><br> <td><input type="number" class="numerid-box single-line" data-bind="value: hours" data-role="numerictextbox" data-format="n0" /></td><br> <td><input type="number" class="numerid-box single-line" data-bind="value: firstYear" data-role="numerictextbox" data-decimals="2" /></td><br> <td><input type="number" class="numerid-box single-line" data-bind="value: advanced" data-role="numerictextbox" data-decimals="2" /></td><br> <td><button data-bind="enabled: removePriceForStudentsButtonEnabled, click: removePriceForStudents" data-role="button">Remove</button></td><br> </tr><br></script>