Completed
Last Updated: 24 Jun 2024 06:52 by ADMIN
Release 2024 Q3 (Aug)

Overview

Expose EditorTemplateId and EditorTemplateView TagHelper attributes in the Form TagHelper.

Current behavior

Currently, the Telerik UI for ASP.NET Core Form TagHelper does not expose EditorTemplateId and EditorTemplateView TagHelper attributes. In comparison to its HTML Helper counterpart:

@(Html.Kendo().Form<FormItemsViewModels>()
    .Name("exampleForm")
    .FormData(Model.Form)
    .HtmlAttributes(new { action = "Items", method = "POST" })
    .Validatable(v =>
    {
        v.ValidateOnBlur(true);
        v.ValidationSummary(vs => vs.Enable(true));
    })
    .Items(items =>
    {
        items.AddGroup()
            .Label("Registration Form")
            .Items(i =>
            {
               i.Add()
                     .Field(f => f.TextBox)
                     .Label(l => l.Text("TextBox:"))
                     .EditorTemplateId("myTemplate");

                i.Add()
                     .Field(f => f.TextBox)
                     .Label(l => l.Text("TextBox:"))
                     .EditorTemplateView(Html.Partial("_ExportCalculationForm", Model.Form));
            });
    })
)

Expected/desired behavior

It would be beneficial if such configurations were to be exposed for the TagHelper Form as well

<kendo-form name="exampleForm"  method="POST" asp-action="Items" form-data="Model.Form">
    <validatable validate-on-blur="true" validation-summary="true" />
    <form-items>
        <form-item type="group">
            <item-label text="Registration Form" />
            <form-items>
                
                <form-item field="TextBox" editor-template-id="myTemplate">
                    <item-label text="TextBox:" />
                </form-item>

                <form-item field="TextBox" editor-template-view='Html.Partial("_ExportCalculationForm", Model.Form)'>
                    <item-label text="TextBox:" />
                </form-item>

            </form-items>
        </form-item>
    </form-items>
</kendo-form>

Environment

  • Kendo UI version: 2024.2.514
  • Browser: [all]
Completed
Last Updated: 24 Oct 2022 12:05 by ADMIN
Release R1.2023-Increment.1(09.Nov.2022)
Currently, the Telerik ASP.NET Core Form component does not display the name of the property that is set through the "DisplayAttribute.Name Property". Is it possible to implement it?
Completed
Last Updated: 29 May 2025 08:41 by ADMIN
Release 2025 Q2 (May)
Created by: Mattia
Comments: 2
Category: Form
Type: Feature Request
26
Allow configuring the Upload component through the .Items configuration:
.Items(items =>
{    
    items.Add()
        .Field(f => f.Type)
        .Label(l => l.Text("Type:"))
        .Editor(e =>
        {
            e.Upload() 
        }
}

Completed
Last Updated: 16 Mar 2021 07:43 by ADMIN
Created by: Edwin
Comments: 1
Category: Form
Type: Feature Request
3

Provide built-in integration of RadioButton / RadioGroup in the Form

i.e. :     .Editor(e =>
                    {
                        e.RadioButton();
                    });
            });
Completed
Last Updated: 07 Sep 2021 06:17 by ADMIN
Release 2021.R3
Created by: Bas
Comments: 3
Category: Form
Type: Feature Request
48

Add support for hidden fields. There could be an alternative way of adding them to the Items collection, e.g.

.AddHidden()

Consider the cases when the hidden field is bound to a model field and when it isn't bound to the model. The latter could be a scenario involving antiForgeryTokens: 

<input type="hidden" name="__RequestVerificationToken" value="token" />

In both cases you should be able to set the value of the hidden field programmatically and submit it with the form.