An invalid form control with name='' is not focusable...

0 Answers 315 Views
DropDownList
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
DoomerDGR8 asked on 13 Oct 2022, 06:56 AM

I'm dealing with a situation specified here in the jQuery world: https://docs.telerik.com/kendo-ui/knowledge-base/combobox-invalid-form-control-is-not-focusable

I'm having a similar issue but am using a combination of tag-helpers and Html extension methods to render controls. Kendo Text boxes are getting client-validated properly, but DropDowns are not, and also some textboxes that are initially hidden are also facing the same issue.

Georgi
Telerik team
commented on 17 Oct 2022, 12:08 PM

Hi,

Do you set the required attribute in the configuration of the component? If you do, please test to use the `for` and set the required option via data annotations.

e.g.

// tag helper config

<kendo-dropdownlist for="Orders"

// model

[Required]
public List<SelectItem> Orders { get; set; }

DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
commented on 17 Oct 2022, 01:03 PM

Ibdidband that's why the console error appears when the client side validation triggers
Georgi
Telerik team
commented on 18 Oct 2022, 11:25 AM

Could you please share your entire configuration with us?

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or