复选框的概述

Telerik UI for ASP。NET MVC忍者图像

复选框是Telerik UI for ASP。NET MVC,一个具有 110+ 组件的专业级UI库,用于构建现代和功能丰富的 应用程序。想要试用它,请注册一个30天的免费试用。

Telerik UI CheckBox HtmlHelperNET MVCis a server-side wrapper for the Kendo UI DataSource widget.

Telerik UI复选框。NET MVCis based on the convential HTML checkbox element. It allows you to add more customizable checkboxes to your application.

初始化复选框

下面的示例演示如何定义CheckBox。

@(Html.Kendo().CheckBox() .Name("eq1") .Checked(true) .Label("My Telerik Checkbox"))

双向绑定

要使用Telerik UI复选框作为c#模型中字段的编辑器,请使用CheckboxFor助手来声明:

@(Html.Kendo().CheckBoxFor(m=>m.BooleanFieldName) .Label("可编辑的复选框"))))

另请参阅

在本文中
Baidu
map