Declined
Last Updated: 04 Dec 2024 12:56 by ADMIN
NovaStor
Created on: 02 Dec 2024 19:21
Category: Form
Type: Bug Report
2
Validation tooltip is not displayed if the form item is disabled

Hi.

When adding a form item to a form, and that form item is disabled, I still expected the validation tooltip to be displayed.

For example, the form item may be dynamically disabled because of previous missing criteria.

I've attached a sample project to reproduce the behavior in a simple scenario.

If the form items are enabled, then the tooltips appear as expected.

Until this issue is resolved, is there a simple work-around?

Thank you.

Attached Files:
1 comment
ADMIN
Tsvetomir
Posted on: 04 Dec 2024 12:56

Hi,

Thank you for the provided example.

In general, the disabled HTML elements do not fire mouse events, so the ValidationTooltip can't find out when the disabled form item is hovered. So the observed behavior is expected.

However, an alternative is to use FormItem Template and TextBox component. The idea of this approach is to disable the TextBox instead of the FormItem, wrap the TextBox in some other HTML element for example  HTML <div>, and set the ValidationTooltip target to it. To assist you further, I've prepared a REPL example to showcase the result of this approach.

With the above in mind, I'm marking the bug report as "Declined". I hope the provided information sheds some light on the scenario and helps you to move forward.

Regards,
Tsvetomir
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.