我在下面有一个简单的类,我试图用它在编辑器剑道控件中显示内容字符串。我在将属性绑定到编辑器时遇到问题。如何使用 Razor 将内容字符串绑定到 Kendo UI Web/MVC 编辑器?
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?
)