Kendo ui网格Fiter模式:行

时间:2019-03-11 15:39:17

标签: javascript jquery kendo-ui kendo-grid

我正在使用过滤器列模式:在网格中行。对于我的数字列,菜单显示如下

enter image description here

我需要的是此列中的过滤器,作为菜单模式下使用的过滤器

enter image description here

这是我的代码的一部分

 schema: {
                        data: "results",
                        total: "total",
                        model: {
                        id: "accountingTransactionKey",
                        fields: {
                            accountingTransactionKey: { editable: false, nullable: false },
                            date: { editable: false, nullable: false },
                            organization: { editable: false, nullable: false },
                            accountDebit: { editable: false, nullable: true },
                            costArticleUsed: { editable: false, nullable: true },
                            accountCredit: { editable: false, nullable: true },
                            isIntraGroupPartnerOrganization: { editable: false, nullable: true, type: "number" },
                            currency: { editable: false, nullable: true },
                            sum: { editable: false, nullable: true, type: "number"},...
                   ...{
                            field: "sum",
                            title: "Сумма",
                            width: "150px",
                            //format: "{0:n2}",
                            locked: true,
                            filterable:
                            {
                                multi: true,
                                cell:
                                {
                                    operator: "eq",
                                    suggestionOperator: "eq",
                                    showOperators: true
                                }
                            },
                            template: function (dataItem) { return numberWithSpaces(dataItem.sum.toFixed(2)) },
                            footerTemplate: "<b>" +"#: numberWithSpaces(sum.toFixed(2)) #"+"</b>"
                        },

我的要求有解决办法吗?

谢谢

0 个答案:

没有答案