Angular expression in title attribute

2 posts, 1 answers
  1. Denis
    Denis avatar
    8 posts
    Member since:
    Feb 2014

    Posted 11 Oct 2017 Link to this post


    There is an issue with the numericTextBox title, that is showing on mouse hover. Here is the dojo.

    I'll try to explain this dojo more detailed. In case of using ng-model, title of kendo-numeric-text-box still contains angular template: {{ hello }}. But in case of using k-ng-model title text is shown correctly as long as the model value isn't changing. After value was changed, title began to show angular template. 

    I also added a kendo-drop-down-list element as an example that everything works fine with it. Also I would like to note, that everything was fine with kendo version 2016.2.607. Looks like these changes made title behavior not as expected.

  2. Answer
    Stefan avatar
    3034 posts

    Posted 13 Oct 2017 Link to this post

    Hello, Denis,

    Thank you for the example and the details.

    Please have in mind that this is expected as the templates are not evaluated before the widget initialization. I noticed that a custom directive is used, but the NumericTextBox is specific widget as it is rendering 2 input elements and the correct title is added to only one of them:

    I modify the example to set the title attribute to all of the inputs. It is still only for the k-ng-model, but this is the recommended binding approach:

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top