KendoUI的学习

Release notes for Kendo UI Professional     =>Release notes发布说明
Components     组成部分
What's new     有什么新玩意
Remove legacy css from dataviz styles (#4251)  =>legacy  遗留
suite parameter of the widgetInstance method is mandatory in ts definitions (#4277)
=>suite parameter  套件     mandatory  强制性、必须的

Inconsistency between custom formatting and standard formatting. (#3622)=>Inconsistency 不一致的 custom 自定义的  standard 标准的

DropDownTree的定义 

<script>
        $(document).ready(function () {

            // create kendoDropDownTree from input HTML element
            $("#dropdowntree").kendoDropDownTree({
                placeholder: "Select ...",
                height: "auto",
                dataSource: [
                    {
                        text: "Furniture", expanded: true, items: [
                            { text: "Tables & Chairs" },
                            { text: "Sofas" },
                            { text: "Occasional Furniture" }
                        ]
                    },
                    {
                        text: "Decor", items: [
                            { text: "Bed Linen" },
                            { text: "Curtains & Blinds" },
                            { text: "Carpets" }
                        ]
                    }
                ]
            });
        });
    </script>


Furniture  和Decor本来就是第一层下拉数据,在定义一层扩展 items加上的数据为第二层

 对话框的弹出

<script>
        $("#alertBtn").on("click", function () {
            kendo.alert("This is a Kendo UI Alert message.");
        });

        $("#confirmBtn").on("click", function () {
            kendo.confirm("Are you sure that you want to proceed?").then(function () {
                kendo.alert("You chose the Ok action.");
            }, function () {
                kendo.alert("You chose to Cancel action.");
            });
        });

        $("#promptBtn").on("click", function () {
            kendo.prompt("Please, enter a arbitrary value:", "any value").then(function (data) {
                kendo.alert(kendo.format("The value that you entered is '{0}'", data));
            }, function () {
                kendo.alert("Cancel entering value.");
            })
        });
    </script>

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值