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

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

3 Answers 553 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mohammed
Top achievements
Rank 1
Mohammed asked on 10 Feb 2020, 09:58 AM

 

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

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Mohammed
Top achievements
Rank 1
answered on 11 Feb 2020, 02:39 PM
Any Help Please
0
Accepted
Tsvetomir
Telerik team
answered on 13 Feb 2020, 07:57 AM

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.
0
Mohammed
Top achievements
Rank 1
answered on 15 Feb 2020, 06:43 AM

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

 

Tags
Grid
Asked by
Mohammed
Top achievements
Rank 1
Answers by
Mohammed
Top achievements
Rank 1
Tsvetomir
Telerik team
Share this question
or