Completed
Last Updated: 14 Oct 2021 10:31 by ADMIN
James
Created on: 20 May 2020 15:53
Category: Form
Type: Feature Request
2
Support TextBox as an editor

Please support the plain TextBox as a valid editor within form configuration.  There are times when I would like to put a number into a plain textbox and apply custom code to that rather than use a NumericTextBox.

EG:

{ field: "uploaded", label: "A Label", validation: { required: true }, colSpan: 3, editor: "TextBox" }

3 comments
ADMIN
Martin
Posted on: 14 Oct 2021 10:31

Hello, all,

With the latest release the TextBox and the TextArea widgets are now a built-in Editor in the Form. You can review the new feature in the Form Items demo.

Regards,
Martin
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
ADMIN
Dimitar
Posted on: 27 May 2020 05:18

Hello James,

With the latest release we introduced a new TextBox widget. You are indeed correct that this widget could be added as a From editor for consistency and flexibility.Thus, I am marking this feature request as approved.

For the time being, using a custom editor as you have shown is a valid approach.

Regards,
Dimitar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
James
Posted on: 20 May 2020 16:20

As a workaround I have used a function to do it.

function textboxInput(container, item) {
        container.append($(`<input type="text" name="${item.field}" ${item.validation.required ? 'required="required"' : ''} ${item.validation.readonly ? 'readonly' : '' } class="k-textbox"></input>`));
    }

 

editor: textboxInput