【问题标题】:Kendo Grid groupping剑道网格分组
【发布时间】:2013-01-26 10:32:58
【问题描述】:

我阅读this topic并使用开源版的剑道网络,我目前的版本是剑道UI网络v2012.3.1114。我的问题存在于上面的链接中,我无法解决。

我的部分脚本在这里:

function load() {                
            var grid = $("#grid").data("kendoGrid");

            if (grid) {
                //destroy the previous Grid instance
                grid.destroy();
                //clean up the html
                grid.wrapper.html("");
            }
            var crudServiceBaseUrl = "WebForm.aspx",
                //datasource = null;
                dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: crudServiceBaseUrl + "?q=load&sql=" + $("#tbSQL").val(),
                        dataType: "jsonp"
                    },
                    update: {
                        url: crudServiceBaseUrl + "?q=update&sql=" + $("#tbSQL").val(),
                        dataType: "jsonp"
                    },
                    destroy: {
                        url: crudServiceBaseUrl + "?q=destroy&sql=" + $("#tbSQL").val(),
                        dataType: "jsonp"
                    },
                    create: {
                        url: crudServiceBaseUrl + "?q=create&sql=" + $("#tbSQL").val(),
                        dataType: "jsonp"
                    },
                    parameterMap: function (options, operation) {
                        if (operation !== "read" && options.models) {
                            return { models: kendo.stringify(options.models) };
                        }
                    }
                },
                batch: true,
                pageSize: 20,
                schema: getmodel()
            $("#grid").kendoGrid({
                dataSource: dataSource,
                navigatable: true,
                //pageable: true,
                selectable: true,
                //groupable: true,
                sortable: true,
                pageable: {
                    refresh: true,
                    pageSizes: true
                },
                height: 500,
                toolbar: ["create", "save", "cancel"],
                columns: getColumns(),
                editable: true
            });
        }

一切正常,但只有在加载页面后我只能按标题分组一次。

【问题讨论】:

    标签: kendo-ui kendo-grid


    【解决方案1】:

    在最新版本的 KendoUI 2012 Q3 SP1 (v.2012.3.1315) 中,这种行为似乎得到了改进,分组按预期工作。为方便起见,我创建了这个sample

    【讨论】:

    猜你喜欢
    • 2015-04-26
    • 1970-01-01
    • 1970-01-01
    • 2023-03-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多