TagHelper for Pager does not allow "All"

1 Answer 47 Views
Grid Pager
Kyle
Top achievements
Rank 2
Veteran
Kyle asked on 11 Oct 2023, 03:38 PM
It appears that using the Razor syntax allows us to set:
new object[] { 5, 10, 20, 50, "All" }
However, the TagHelper does not. It only supports ints. Therefore, I do not have a way to use the special "all" keyword for the pager while using TagHelpers.

1 Answer, 1 is accepted

Sort by
1
Alexander
Telerik team
answered on 16 Oct 2023, 07:49 AM

Hi Kyle,

Thank you for reaching out.

Indeed, your supposition is precisely accurate. At this stage, the page-sizes TagHelper attribute exposes only an integer array overload which can be incorporated. However, this is a valid request as users may have the need to display all the data from the PageSizes DropDownList for a TagHelper scenario in particular.

Thus, I have logged the following items where you can track the items' status. Both are symbiotically connected. Hence, you can review either of the items which you find more intuitive:

I understand the importance this may have for you and in this regard, I have provided an enhancement candidate that is pending further evaluation from our respective developer subject matter experts and quality assurance engineers.

For the time being, I would recommend adding the "All" option programmatically by utilizing the native widget Grid counterpart's .setOptions() method:

<script type="text/javascript">
        $(document).ready(function () {
            $("#grid").data("kendoGrid").setOptions({
                pageable: {
                    pageSizes: [5, 10, "All"]
                }
            })
        })
</script>

This should then produce the following visual representation upon interacting with the page sizes:

For further bringing this to our attention, I have also updated your  Telerik points as a token of appreciation.

Kind Regards,
Alexander
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.
Alexander
Telerik team
commented on 24 Oct 2023, 01:29 PM

Hi Kyle,

I'm happy to let you know that I have received the green light for the provided changes and that the fix will be available within our next available release. I again would like to thank you for your contribution. It was invaluable to me in order to unravel the fixed candidate.

Kyle
Top achievements
Rank 2
Veteran
commented on 24 Oct 2023, 02:22 PM

Alexander,

Thank you for your prompt attention and quick turn around.

While we switched over to using the Razor syntax due to other reasons, I am constantly pleased to see Progress Telerik respond so quickly to our needs.

Keep up the great work!
Kyle

Tags
Grid Pager
Asked by
Kyle
Top achievements
Rank 2
Veteran
Answers by
Alexander
Telerik team
Share this question
or