Duplicated
Last Updated: 04 Mar 2020 15:34 by ADMIN
Manoj
Created on: 03 Dec 2018 07:35
Category: NumericTextBox
Type: Feature Request
8
Numeric TextBox Select on focus

Provide an option for the Kendo UI NumericTextBox to select its value on focus.

This would be a useful feature for data entry situations so you can start typing immediately. 

We are aware of the proposed how to article but this is not a good solution for large applications. 

Can we have something like "selectOnFocus: true". The code fix for this could be:

kendo.ui.NumericTextBox.fn._focusin = function(){
  var that = this;
  that._inputWrapper.addClass("k-state-focused");
  that._toggleText(false);
  that.element[0].focus();
// code to add to Kendo source
if(that.options.selectOnFocus){
  setTimeout(function(){
    that.element[0].select();
  });
 }
}

Kind Regards,
Manoj

 

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
1 comment
ADMIN
Alex Hajigeorgieva
Posted on: 04 Mar 2020 15:33

Hello, Manoj,

Thank you very much for the suggested code snippet, we are currently reviewing this request which was first submitted here:

https://feedback.telerik.com/kendo-jquery-ui/1358217-automatically-select-all-when-tabbing-into-the-numerictextbox

Kind Regards,
Alex Hajigeorgieva
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.