This is a migrated thread and some comments may be shown as answers.

Set TextArea in popup editor?

3 Answers 785 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 18 Oct 2017, 09:15 PM
How can I set a field in the popup editor to use a multiline textarea instead of an input tag?

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 20 Oct 2017, 02:38 PM
Hello Michael,

The following article demonstrates how to create custom editors for certain fields step by step:


Finally, for your convenience attached you will find a small sample which illustrates how to use a multi-line textarea instead of an input in the popup editor.


Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Peter
Top achievements
Rank 1
answered on 03 May 2019, 07:42 AM

I am trying this, but the Firstname isn't bound to the textarea, it comes back empty. What is missing here?

 

0
Georgi
Telerik team
answered on 07 May 2019, 07:07 AM
Hi Peter,

The issue occurs since the editor is missing a data-bind attribute.

e.g.

@Html.TextArea("FirstName",new {rows=5, cols=20, @class= "text-wrapp k-textbox",
    data_bind = "value:FirstName",
    style ="resize:none"
})


Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Peter
Top achievements
Rank 1
Share this question
or