标签和HTML助手概述
Telerik UI标签和HTML助手。网络核心are server-side wrappers that enable you to use and configure thejQuery小部件的Kendo UI在ASP中。网络核心application. Both helper flavors offer the same functionality, and you can choose which one to use depending on your preferences.
您可以向应用程序添加所需的Tag或HTML helper,然后通过使用预定义的强类型属性进一步配置它们。帮助程序还允许你在ASP中处理小部件的事件。NET核心项目。
小部件vs.助手
下面的列表描述了如何为ASP。网络核心helpers differ from the Kendo UI widgets.
ASP的用户界面。网络核心helpers:
- 允许您创建不需要HTML和JavaScript编码的小部件。
- 提供服务器端数据绑定,在某些情况下,提供服务器端呈现。
- 允许您使用
ToDataSourceResult ()
用于将Kendo UI小部件绑定到服务器端集合并执行数据操作(分页、排序、筛选和分组)的扩展方法。 - 提供与一些ASP的集成。网络核心features such as security trimming and editor templates.
- 支持基于数据注释属性的不引人注目的验证。
- 启用CRUD操作的简单实现。
- 支持Visual Studio智能感知服务器端配置语法。
- 启用Visual Studio Extensions自动创建新的Telerik UI。NET Core应用程序和用于自动更新Telerik UI版本。
- 允许您使用脚手架生成小部件声明和相关的控制器动作方法。
- 允许完全的服务器平台独立性。
- 对初始化脚本的位置提供完全控制。
- 的集成MVVM,AngularJS,单页面应用程序发展模式。
- 支持Visual Studio智能感知客户端API。
已知的问题
在小部件呈现自定义内容的页面上(例如,按钮、编辑器、分配器、工具提示或窗口),可能需要禁用标记助手。一些标记助手,例如
href
一种是自动处理,结果是无效的HTML。@removeTagHelper "*,微软。aspnet . mvc。Razor" @removeTagHelper "*, Microsoft.AspNetCore.Mvc.Razor"
的
TagMode
MultiSelect的enum现在被重命名为MultiSelectTagMode
.延期()
只能作为最后一个设置调用。@(Html.Kendo(). numerictextbox (). name ("age") /*其他配置。*/ .Deferred())
Grid不支持在Telerik UI中为ASP提供的服务器端呈现。净MVC。工具栏模板、列标题模板和列模板不再在服务器上呈现。
在Telerik UI中为ASP引入了Enum命名的一些更改。NET核心图表:
以前的枚举 | 现在 |
---|---|
ChartAreaStyle |
ChartSeriesLineStyle |
ChartAreaMissingValues |
ChartSeriesMissingValues |
ChartBarGradient |
ChartSeriesGradient |
ChartBarLabelsPosition |
ChartSeriesLabelsPosition |
ChartFunnelLabelsAlign |
ChartSeriesLabelsAlign |
ChartFunnelLabelsPosition |
ChartSeriesLabelsPosition |
ChartLineMissingValues |
ChartSeriesMissingValues |
ChartLineStyle |
ChartSeriesStyle |
ChartPieLabelsAlign |
ChartSeriesLabelsAlign |
ChartPieLabelsPosition |
ChartSeriesLabelsPosition |
ChartPointLabelsPosition |
ChartSeriesLabelsPosition |
ChartPolarAreaStyle |
ChartSeriesLineStyle |
ChartPolarLineStyle |
ChartSeriesLineStyle |
ChartRadarAreaStyle |
ChartSeriesLineStyle |
ChartRadarLineStyle |
ChartSeriesLineStyle |
ChartRangeAreaLabelsPosition |
ChartSeriesLabelsPosition |
ChartScatterLineMissingValues |
ChartSeriesMissingValues |
ChartScatterLineStyle |
ChartSeriesStyle |
- 的缩略图ASP的用户界面视图。网络核心Editor's ImageBrowser is not supported because the
系统。画
名称空间是不是ASP的一部分。网络核心.但是,您可以使用第三方库在服务器端处理映像。