微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在 pagesizeoptions 中添加“所有结果”选项网格

如何解决在 pagesizeoptions 中添加“所有结果”选项网格

我在 vueJS 中有一个 jqxgrid 表。 我想在 :pagesizeoptions.添加所有结果选项 下面是我正在尝试做的。请帮忙

<JqxGrid ref             = "test"
         :width           = "getWidth"
         :columnsresize   = "true"
         :pageable        = "true"
         :autorowheight   = "true"
         :autoheight      = "true"
         :columnsheight   = "55"
         :selectionmode   = "'checkBox'"
         :altrows         = "true"
         :pagesizeoptions = "['10','25','50','100','All Results']"
         @bindingcomplete = "onBindingcomplete($event)"
         @cellclick       = "testfun($event)"
         :showaggregates="true" :showstatusbar="true" :pagermode="'default'"
         :sortable="true" :showsortmenuitems="false">
</JqxGrid>

我正在尝试在 :pagesize 事件上更新 pagesizechanged。但它没有改变页面大小。请帮忙。

<JqxGrid ref             = "test"
         :width           = "getWidth"
         :columnsresize   = "true"
         :pageable        = "true"
         :autorowheight   = "true"
         :autoheight      = "true"
         :columnsheight   = "55"
         :selectionmode   = "'checkBox'"
         :altrows         = "true"
         :pagesize="pagesize"
         :pagesizeoptions = "['10','All Results']"
         @bindingcomplete = "onBindingcomplete($event)"
         @cellclick       = "testfun($event)"
         :showaggregates="true" :showstatusbar="true" :pagermode="'default'"
         :sortable="true" :showsortmenuitems="false">
</JqxGrid>

data: function () {
            return {
                pagesize: 10
            }
        },onPagesizechanged(){
                const value = this.$refs.test.getdatainformation();
                this.pagesize = value.rowscount;
            }

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。