Unplanned
Last Updated: 27 May 2020 05:18 by ADMIN
James
Created on: 20 May 2020 15:53
Category: Form
Type: Feature Request
0
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" }

2 comments
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