Declined
Last Updated: 10 Feb 2021 10:22 by ADMIN
Aleksandr
Created on: 03 Feb 2021 10:20
Category: Grid
Type: Feature Request
0
SelectOnFocus for grid column
same as we have for regular numeric textbox, to have an property for the grid field
1 comment
ADMIN
Georgi Denchev
Posted on: 10 Feb 2021 10:22

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/.