Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Sorry for my late reply, we are in national holiday. To do this you need to register the keypress event and allow only number to be passed. Something like this:
TextBox::create(array(
...
"clientEvents"=>array(
"keypress"=>"function(event) {
$(this).val($(this).val().replace(/[^\d].+/, ''));
if ((event. Which < 48 || event. Which > 57)) {
event.preventDefault();
}
}"
)
...
))
Note: My code is just to represent the idea
Hope that helps.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo