Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Telerik mvc 网格并弹出编辑模板。但我不知道什么时候要自定义我的编辑模板。Telerik 将我模型上的所有字段自动绑定到它的编辑模板。
那么,如何更改编辑模板,例如它的布局,或者我想将文本框更改为下拉列表?
您需要为您的模型创建一个编辑器模板。Brad Wilson 在一篇博文(这是系列文章的一部分)中很好地解释了这一点。还有一个代码库项目,它显示了自定义弹出编辑器表单的工作实现。