Select All Text on Focus AngularJS

3 posts, 0 answers
  1. Marc
    Marc avatar
    169 posts
    Member since:
    Sep 2016

    Posted 16 Feb 2017 Link to this post

    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.

    My Html:

    <input kendo-numeric-text-box
    style="width: 45%;"


    Inside my Angularjs Controller:

    $(document).ready(function () {
    $("input[type=text]").bind("focus", function () {
    $"bind focus ");
    var input = $(this);
    clearTimeout("selectTimeId")); //stop started time out if any

    var selectTimeId = setTimeout(function () {;
    });"selectTimeId", selectTimeId);
    }).blur(function (e) {
    $"bind blur");
    clearTimeout($(this).data("selectTimeId")); //stop started timeout

  2. Ianko
    Ianko avatar
    1755 posts

    Posted 20 Feb 2017 Link to this post

    Hello Marc,

    With AngularJS, you should rather use the global kendoWidgetCreated event to interact with widgets on initialization. 

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Marc
    Marc avatar
    169 posts
    Member since:
    Sep 2016

    Posted 21 Feb 2017 in reply to Ianko Link to this post

    Hi Ianko,

    I had done that, but still had some issues. In the end, I believe my issue was due to the architecture of my page. (I have numerous Angular directives which had the multiselects inside , and I wanted to clear these multiselects from outside those directives). I used a watch inside each directive and got it to work that way.

    Thanks for the help though!


Back to Top