This is a migrated thread and some comments may be shown as answers.

How to disable "1 - 10 of 2503 items"

5 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jairo
Top achievements
Rank 1
Jairo asked on 22 Jul 2014, 11:32 AM
Hi, can Anyone tell me how to remove this message of the Kendo grids?


I have not found any property that let me do this..


Regards,

Jairo.

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 22 Jul 2014, 11:58 AM
Hello Jairo,


You could achieve this by setting the pageable.info configuration option to false.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jairo
Top achievements
Rank 1
answered on 22 Jul 2014, 12:54 PM
    this.ProductsSource = new kendo.data.DataSource({
                type: "odata",
                transport: {
                    read:
                    {
                        url: "odata/MyDataOData",
                        dataType: "json"
                    }
                },
                schema: {
                    data: function (data) {
                        return data["value"];
                    },
                    total: function (data) {
                        return data["odata.count"];
                    },
                    model: {
                        fields: {
                            Id: { type: "number" },
                            Name: { type: "string" },
                        }
                    }
                },
                height: 250,
                serverPaging: true,
                serverSorting: true,
                serverFiltering: true,
                pageSize: 5,
                filterable: true,
                sortable: true,
                selectable: 'row',
                pageable: {
                    pageSize: 5,
                    info: false
                }
            });



0
Jairo
Top achievements
Rank 1
answered on 22 Jul 2014, 12:56 PM
Hi Dimiter sadly I tried to implement your solution and it does not work, this is the code of the datasource, Am I Doing something wrong?:

this.ProductsSource = new kendo.data.DataSource({
                type: "odata",
                transport: {
                    read:
                    {
                        url: "odata/MyDataOData",
                        dataType: "json"
                    }
                },
                schema: {
                    data: function (data) {
                        return data["value"];
                    },
                    total: function (data) {
                        return data["odata.count"];
                    },
                    model: {
                        fields: {
                            Id: { type: "number" },
                            Name: { type: "string" },
                        }
                    }
                },
                height: 250,
                serverPaging: true,
                serverSorting: true,
                serverFiltering: true,
                pageSize: 5,
                filterable: true,
                sortable: true,
                selectable: 'row',
                pageable: {
                    pageSize: 5,
                    info: false
                }
            });





0
Accepted
Dimiter Madjarov
Telerik team
answered on 22 Jul 2014, 02:55 PM
Hello Jairo,


The pageable property is part of the Grid configuration, not the dataSource. This is also the case for filterable, sortable, selectable etc.

I hope this information helps. Let me know if I could assist further.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jairo
Top achievements
Rank 1
answered on 22 Jul 2014, 03:17 PM
Thank you Dimiter, it works!...

Regards,

Jairo.
Tags
Grid
Asked by
Jairo
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Jairo
Top achievements
Rank 1
Share this question
or