• KendoUi学习之旅 Combobox的使用


    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>
    <div id="example">
    <div class="demo-section k-content">
    <div data-bind="invisible: isPrimitive">
    <input data-role="combobox"
    data-placeholder="请输入"
    data-text-field="Item"
    data-value-field="ID"
    data-bind="value: selectedProduct,
    source: products"
    style=" 100%" />
    </div>
    </div>
    <script>
    var viewModel = kendo.observable({
    selectedProduct: null,
    isPrimitive: false,
    isVisible: true,
    isEnabled: true,
    primitiveChanged: function() {
    this.set("selectedProduct", null);
    },
    displaySelectedProduct: function() {
    var selectedProduct = this.get("selectedProduct");
    return kendo.stringify(selectedProduct, null, 4);
    },
    products: new kendo.data.DataSource({
    transport: {
    read: {
    url: "/Home/GetCategoryList",
    dataType: "json"
    }
    }
    })
    });
    kendo.bind($("#example"), viewModel);
    </script>
    </div>


    </body>
    </html>

  • 相关阅读:
    phpcms相关
    php文件缓存
    js 、jq强化复习
    框架替换主页
    羽恒梦工厂所有后台的操作页面
    羽恒梦工厂个人中心
    羽恒梦工厂详情页
    待查的问题
    ASP.NET中的常用快捷键
    快速排序
  • 原文地址:https://www.cnblogs.com/jiangcm/p/7456669.html
Copyright © 2020-2023  润新知