Hybrid AutoGen form and several manual fields?

3 Answers 252 Views
Form TextArea
Jstemper
Top achievements
Rank 2
Bronze
Iron
Jstemper asked on 29 Dec 2021, 02:49 PM

In the TelerikForm Blazor control is it possible to have all the fields auto-generate except for a couple of specific ones?

I have a form that has ~20 fields on it. It autogenerates properly. I would like to add an additional field for notes but want that to be a multiline text area and I want it to span all the columns of the form.  

Is there a way to combine an autogenerated form with a few templated forms?

3 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 30 Dec 2021, 06:53 PM

Hi,

Once you start using templates or declaring fields manually, the form component can no longer to the automatic generation as conflicts can arise and there isn't a neat way to control what renders where. Thus, I am sorry to say that this is not possible.

 

Regards,
Marin Bratanov
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 07 Mar 2022, 09:17 PM | edited

Autogeneration could be extended in order to get more FormEditorTypes? For example a ColorPicker input.

Or alternatively could I create a "Dynamic Form Builder" to achieve this? Something like this: https://www.syncfusion.com/blogs/post/how-to-create-a-dynamic-form-builder-in-blazor.aspx

Thank you.
Ludwig.
0
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
answered on 07 Mar 2022, 09:23 PM | edited on 08 Mar 2022, 02:30 PM

@Jstemper You can customize the automatically generated field by providing the EditorType attribute, exposed on the <FormItem>.

Take a look a the example provided in: https://docs.telerik.com/blazor-ui/components/form/overview#customize-the-automatically-generated-fields

Regards. 
Ludwig.

 

Mark
Top achievements
Rank 1
commented on 23 May 2022, 01:52 PM

Can you provide an example of this?

Thanks, Jeff

 

0
Svetoslav Dimitrov
Telerik team
answered on 26 May 2022, 06:39 AM

Hello John, Ludwig, and Mark,

I have opened a feature request -  Add the ability to use manually declared and autogenerated fields together. I have added your Votes for it and I would encourage you to click the follow button to receive email notifications on status updates. 

Regards,
Svetoslav Dimitrov
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.

Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 07 Jun 2022, 12:44 PM

Thank you Svetoslav for open the request. 
Regards. 

Ludwig.
Tags
Form TextArea
Asked by
Jstemper
Top achievements
Rank 2
Bronze
Iron
Answers by
Marin Bratanov
Telerik team
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
Svetoslav Dimitrov
Telerik team
Share this question
or