@Html.EJS().NumericTextBox("customformat").Value(250).Format("###.### Zero").Render() |
@Html.EJS().NumericTextBox("customformat").Value(250).Change("onChange").Render()
<script>
function onChange(args) {
var instance = document.getElementById('customformat').ej2_instances[0]
setTimeout(() => {
if (args.value == 0 || instance.value == null) {
instance.element.value = "Zero";
}
}, 30)
}
</script> |