how to bind this column to TextArea in asp.net core project in edit template

4 posts, 1 answers
  1. Mohammed
    Mohammed avatar
    15 posts
    Member since:
    Mar 2019

    Posted 10 Feb 2020 Link to this post

     

    how to bind this column to TextArea in asp.net core project in edit template 

    this my steps but it's not working 

    column.Bound(c => c.Note).EditorViewData("TextArea");

    [UIHint("TextArea")]
    public string Note
    {
        get;
        set;
    }

    Views/Shared/EditorTemplates/TextArea.cshtml
    @model string

    @Html.TextAreaFor(m=>m, new { rows = 5})

     

     

     

     
  2. Mohammed
    Mohammed avatar
    15 posts
    Member since:
    Mar 2019

    Posted 11 Feb 2020 Link to this post

    Any Help Please
  3. Answer
    Tsvetomir
    Admin
    Tsvetomir avatar
    796 posts

    Posted 13 Feb 2020 Link to this post

    Hi Mohammed,

    The provided code snippets appear to be set up correctly. However, it is important to point out that the EditorViewData option is used for passing additional data to the editor template. Therefore, it would be more accurate if you set the following option instead:

    columns.Bound(x => x.Note).EditorTemplateName("TextArea");
    

    In case the issue persists, share a sample in which the faulty behavior could be observed.

     

    Regards,
    Tsvetomir
    Progress Telerik

    Get quickly onboarded and successful with Telerik UI for ASP.NET Core with the dedicated Virtual Classroom technical training, available to all active customers.
  4. Mohammed
    Mohammed avatar
    15 posts
    Member since:
    Mar 2019

    Posted 15 Feb 2020 Link to this post

    Textarea it's work correctly in different PC  but in my PC  both no things work i don't Know why 

     

Back to Top