Hello Khaled,
Thank you for the kind words.
Here is the Feature Request public item that I created for the case:
Furthermore, I added a vote on your behalf. The most voted items are considered for implementation.
Best Regards,
Anton Mironov
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi Anton,
Thank you for sharing the sample project. Please open a Feature Request for this and we expect that it will be implemented at the earliest possible.
Hello Khaled,
Thank you for the details provided.
My name is Anton and I am a member of the Telerik UI for ASP.NET MVC & Core Team. In order to cover the newly opened cases from my colleague Ivaylo faster, I will join the threads and hopefully achieve the desired behaviors.
Talking about this case - yes, you are totally correct! This behavior is not built-in but is a great idea for a Feature Request. Let me know if you would like me to open a Feature Request on your behalf for this functionality. The most-voted items are considered for implementation.
In order to achieve the desired behavior, I would recommend using the following approach:
// In the Grid:
.Events(e => e.DataBound("onDataBound"))
// The Event handler:
function onDataBound(e) {
var grid = e.sender
if (grid.dataSource.total() <= grid.dataSource.pageSize()) {
grid.pager.element.hide();
} else {
grid.pager.element.show();
}
}
Attached is a sample project that I prepared for the case. It implements the approach above.
Feel free to test the sample project on your side and let me know if this is the desired result.
Kind Regards,
Anton Mironov
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.