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" }
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
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
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