5 Answers, 1 is accepted
0
Accepted
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
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
}
});
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
}
});
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
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
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.
Regards,
Jairo.