I am trying to remove input field minimums in a Datatable. I am trying to use the following code but having trouble:
fd.spRendered(function() {
var dt = fd.control('MyTable');
if (!dt) {
console.error('MyTable not found');
return;
}
dt.ready().then(function() {
dt.widget.tbody.find("input[name='ColumnName']").each(function() {
var numeric = $(this).data('kendoNumericTextBox');
if (numeric) {
numeric.min(null);
var val = numeric.value();
numeric.value(null);
numeric.value(val);
}
});
});
dt.widget.bind('edit', function(e) {
var numeric = e.container.find('[name="ColumnName"]').data('kendoNumericTextBox');
if (numeric) {
numeric.min(null);
}
});
});
Any help is appreciated.