0
我有一個簡單的類下面,我試圖用來在編輯器Kendo控件中顯示內容字符串。我遇到了將該屬性綁定到編輯器的問題。如何使用Razor將內容字符串綁定到Kendo UI Web/MVC編輯器?在Kendo UI編輯器中無法顯示內容
public class Details
{
public int TextId { get; set; }
public string Content { get; set; }
}
public List<Details> TextDetails
{
get
{
return mDetails;
}
}
@model MyApp.MyModels.ContentModel
@{
ViewBag.Title = "EditorContent";
}
<h2>Stuff To Display</h2>
@(Html.Kendo().Editor()
.Name("editor")
.Value(Model.TextDetails.Content)
//I thought I could just bind to the property.... How can I show the Content in the Editor?
)