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

UIHint ignored on form items

1 Answer 20 Views
Form
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 24 Nov 2020, 09:51 PM
I have properties decorated with the UIHint attribute on my view models. When binding one of these properties to a Form control's items, it ignores the UIHint (and the type completely in some cases). Can you only set a Form's item control type via the Editor method? Or can the Form control infer the control type via UIHint somehow?

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 27 Nov 2020, 12:06 PM

Hello Jonathan,

The use of custom editors for model properties decorated with the UIHint() attribute is currently not supported in the From. There is such a Feature request logged in our official GitHub repo and you will find a link to it below. I would suggest you cast a vote for the issue. Based on the votes the issue gains in the community, it could be considered for future implementation. 

- https://feedback.telerik.com/aspnet-mvc/1472383-provide-support-for-custom-editors-for-bound-properties

You could take a look at the article and demo linked below where it is demonstrated how editors could be configured in the From:

- https://docs.telerik.com/aspnet-core/html-helpers/layout/form/items#configure-editor

- https://demos.telerik.com/aspnet-core/form/items

I hope the provided information will be helpful.

Regards,
Neli
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/.

Tags
Form
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or