Hello Aleksandr,
Thank you for sharing your idea!
The Kendo Grid initializes default editors depending on the type of the field in order to ease the work of the developer. The default widget that is used for the fields of type number is a KendoNumericTextbox.
Generally speaking further customization of the editor is down to the developer as it differs from case to case. The recommended approach would be to use the editor property of the grid column.
columns: [
{ field: "MyNumberField", editor: myCustomNumberEditor }
]
function myCustomNumberEditor(container, options){
$('<input data-bind="value:MyNumberField" />')
.appendTo(container)
.kendoNumericTextBox({
selectOnFocus: true
});
}
Let me know if you have something else in mind.
Best Regards,
Georgi Denchev
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.