大佬教程收集整理的这篇文章主要介绍了Kendo UI循环通过ListView中的Json中的集合,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
{"Data":[{"title":"Malicious Acts","KeyPairs":{"key1":"12","Key2":"24"}},{"title":"Enrollments",{"title":"Customer FeedBACk",{"title":"Questionable Accounts","Key2":"24"}}],"@R_1000_1@R_197_11226@6@l":4,"AggregateResults":null,"Errors":null}
我想将KeyPairs项目渲染到模板中,只是有一些麻烦,了解如何.
来源:
<div id="subscriberFunctions"> <script type="text/x-kendo-tmpl" id="template"> <div class="subscriberFunction"> <h3>${titlE}</h3> <!-- Display KeyPairs --> </div> </script> @(Html.Kendo().ListView<SubscriberMenuFunction>() .Name("listView") .TagName("div") .ClientTemplatEID("template") .Datasource(datasource => { datasource.Read(read => read.action("SubscriberMenu","ListView")); }) .SELEctable(SELEctable => SELEctable.Mode(ListViewSELEctionMode.SinglE)) ) </div>
我相信我只是反思这个,这是一个简单的事情,但是不知道如何在Kendo UI的模板中实现foreach循环来识别它.
提前致谢!
以上是大佬教程为你收集整理的Kendo UI循环通过ListView中的Json中的集合全部内容,希望文章能够帮你解决Kendo UI循环通过ListView中的Json中的集合所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。