This is a migrated thread and some comments may be shown as answers.

.focus()

1 Answer 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 11 Dec 2011, 08:49 PM
I need to be able to set the focus to a numerictextbox, then on change to a dropdownlist

Doesn't seem to be working though...

In the master combobox in the change event I'm doing this
$("#quantity").focus();

here's the initialization of the numeric box
var quantityBox = $("#quantity").kendoNumericTextBox({
        min: 1,
        format: "#.00 units",
        change: function(e){
            fromCombo.input.focus();
            fromCombo.open();
        }
    }).data("kendoNumericTextBox");

...and you can see that on it's change I try and set the focus as well

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 13 Dec 2011, 01:23 PM
Hello Steve,

 
Currently this is not supported. You can achieve your goal if you focus the input element holding the formatted value:

$("#quantity").siblings("input").focus();

This functionality is scheduled for the next release of the KendoUI.

Regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Georgi Krustev
Telerik team
Share this question
or