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

can't update Title!

6 Answers 15 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Gerry
Top achievements
Rank 1
Veteran
Gerry asked on 24 Oct 2018, 05:28 PM

Why doesn't this work? 

$('#my-kendo-numerictextbox').attr('title', '100');

Currently the title/tooltip is displaying the value the is already visible in the textbox - seriously? 

I want to be able to change the value dynamically to reflect the upper value allowed in the numeric textbox, in other words, some useful information.I'm a bit weird that way, wanting to show the users something that is actually useful...

thanks

6 Answers, 1 is accepted

Sort by
0
Gerry
Top achievements
Rank 1
Veteran
answered on 24 Oct 2018, 05:29 PM
Please note my maximum values are dynamic, and change according to other choices in the UI.
0
Accepted
Viktor Tachev
Telerik team
answered on 26 Oct 2018, 09:42 AM
Hello Gerry,

The NumericTextBox component renders two input elements internally. Thus, when changing the title attribute it should be applied to the input holding the formatted value. 

Check out the example below that illustrates the approach.



Regards,
Viktor Tachev
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.
0
Gerry
Top achievements
Rank 1
Veteran
answered on 26 Oct 2018, 04:07 PM

Thanks that works!

Another solution (just discovered): add a class and use the class selector:

$('.mykendonumerictextboxclassname').attr('title', '100');

0
Viktor Tachev
Telerik team
answered on 30 Oct 2018, 08:13 AM
Hello Gerry,

The approach you describe is also an option. Thank you for sharing it with the community.


Regards,
Viktor Tachev
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.
0
Jose Manuel
Top achievements
Rank 2
answered on 05 Mar 2020, 08:42 AM

Hello,

I have tried this approach but when the value changes in the numeric textbox the title comes back again, so I have removed the attribute into the event "change" and it's working for me.

$("#numerictextbox").kendoNumericTextBox({
    change: function(e) {
          e.sender.wrapper.find(".k-formatted-value").attr("title", "");
    }
});

0
Jose Manuel
Top achievements
Rank 2
answered on 11 Mar 2020, 04:16 PM

Hello,

I have created a feature request in order to include it in next releases.Please, vote it if you like it.

https://feedback.telerik.com/kendo-jquery-ui/1457415-allow-numerictextbox-to-have-no-title

Tags
NumericTextBox
Asked by
Gerry
Top achievements
Rank 1
Veteran
Answers by
Gerry
Top achievements
Rank 1
Veteran
Viktor Tachev
Telerik team
Jose Manuel
Top achievements
Rank 2
Share this question
or