Set TextArea in popup editor?

4 posts, 0 answers
  1. Michael
    Michael avatar
    13 posts
    Member since:
    Oct 2017

    Posted 18 Oct 2017 Link to this post

    How can I set a field in the popup editor to use a multiline textarea instead of an input tag?
  2. Georgi
    Admin
    Georgi avatar
    673 posts

    Posted 20 Oct 2017 Link to this post

    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.
  3. Peter
    Peter avatar
    10 posts
    Member since:
    Jun 2018

    Posted 03 May 2019 in reply to Georgi Link to this post

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

     

  4. Georgi
    Admin
    Georgi avatar
    673 posts

    Posted 07 May 2019 Link to this post

    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.
Back to Top