2014-04-03 36 views

回答

0

剑道在MVC使用的文件夹具有以下路径查看/共享/ EditorTemplates 这个文件夹里面,你必须将所有你通过调用模板名称,例如:

@(Html.Kendo().ListView<temp.Models.YourTable>(Model) 
    .Name("LisView") 
    .TagName("div") 
    .ClientTemplateId("templateView") => here goes the template for data 
    .DataSource(dataSource => dataSource 
     .Model(m => m.Id("ID")) 
     .ServerOperation(false) 
     .Read(read => read.Action("ActionRead", "Controller")) 
    ) 
    .Editable(edit => edit.TemplateName("EditTmpl")) 
) 

EditTmpl => //此模板是您必须存储在上述文件夹中的模板。

希望这有助于。

+0

请张贴您对这个问题的答案,而不是在一个新的职位。 – xbonez