The details here, do not seem to work for AngularJS implementation. Nothing happens, and none of my log messages are shown on click or focus.
http://docs.telerik.com/kendo-ui/controls/editors/numerictextbox/how-to/select-all-on-focus
My Html:
<input kendo-numeric-text-box
k-min="0"
k-ng-model="params.averagePrice.max"
style="width: 45%;"
k-format="'n1'"
k-step="0.1"
k-on-change="maxChange(params.averagePrice)"
k-on-spin="maxChange(params.averagePrice)"/>
Inside my Angularjs Controller:
$(document).ready(function () {
$("input[type=text]").bind("focus", function () {
$log.info("bind focus ");
var input = $(this);
clearTimeout(input.data("selectTimeId")); //stop started time out if any
var selectTimeId = setTimeout(function () {
input.select();
});
input.data("selectTimeId", selectTimeId);
}).blur(function (e) {
$log.info("bind blur");
clearTimeout($(this).data("selectTimeId")); //stop started timeout
})
});