7 Answers, 1 is accepted
Hi Wayne,
I'm afraid this is not possible, these classes reflect the current validation state of the component and the component assigns them on its own internally. If you set an invalid value (either manually, or through code), the component will switch it out with the invalid class to provide the red border that one expects when having an invalid input. When the component becomes valid that updates as well. Our validation happens in the oninput (ValueChanged) event, not delayed to events like onchange.
Could you provide some more details on why this class is a problem, because I am not aware of situation where it is?
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Wayne,
If necessary, you should add CSS rules that remove any Telerik styling you do not wish to see, and add your own classes when/as desired to cascade such customized styling.
Internally we set the valid and invalid class based on the edit context data, so they are correct - the fact that this happens on initial rendering is because we should evaluate the initial value too - if it is invalid, there must be an indication. Thus, the behavior is correct and if specific styling is desired, it should be added by the application.
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hello Wayne,
The following Knowledge Base article shows how: https://docs.telerik.com/blazor-ui/knowledge-base/inputs-handle-keyboard-events
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Wayne,
The class is applied according to what the framework returns for the field state. The fact that initially it considers the form valid is something that is up to the framework.
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.