In this thread, some sample code was given to have a "show all" option in the page size dropdown. (AllPaging.zip). To reproduce the error:
1. Select "All" from the page size dropdown.
2. Click on either the "Next Page" or "Last Page" button to the left of the page size dropdown.
3. You will get a System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
See attached.
The same issue is happening in our production website where we are using this same code. Please advise.
1. Select "All" from the page size dropdown.
2. Click on either the "Next Page" or "Last Page" button to the left of the page size dropdown.
3. You will get a System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
See attached.
The same issue is happening in our production website where we are using this same code. Please advise.
5 Answers, 1 is accepted
0
Hello Robert,
See the video below form my local test with the mentioned application and let me know if I'm missing something:
http://screencast.com/t/DQ45bQiULHEF
All the best,
Maria Ilieva
the Telerik team
See the video below form my local test with the mentioned application and let me know if I'm missing something:
http://screencast.com/t/DQ45bQiULHEF
All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Robert
Top achievements
Rank 1
answered on 26 Mar 2013, 02:17 PM
Interesting... After selecting Page size "All", the control looks different on my screen than on your screencast. Notice that in your screencast, while viewing "All", you can still see a number 1 for the page number in between the "last page" and "next page" buttons. In my screenshot attachment, you can see that this doesn't appear. I am getting the same results in both Internet Explorer and Chrome; running exactly your code with no changes. Could it be a different version of the Telerik libraries? In the sample I tried, it seems to be using the DLLs that were in your zip file; which say "trial version".
0
Hello Robert,
I performed additional tests under different browsers but no luck so far. Besides the browsers tested by my colleague Maria, I tried to recreate the problem in the following ones:
- Internet Explorer 10
- Mozilla Firefox 19.0.2
- Google Chrome 26.0
Again, I have attached a fully runnable website which I would like to ask you to test at your side.
Best regards,
Daniel
the Telerik team
I performed additional tests under different browsers but no luck so far. Besides the browsers tested by my colleague Maria, I tried to recreate the problem in the following ones:
- Internet Explorer 10
- Mozilla Firefox 19.0.2
- Google Chrome 26.0
Again, I have attached a fully runnable website which I would like to ask you to test at your side.
Best regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Robert
Top achievements
Rank 1
answered on 25 Apr 2013, 03:05 PM
Sorry, I thought I replied to this earlier.
Your code worked fine; I finally saw the difference between mine and yours. My code was using Int32.Max as the value of the "All" option, which was what was originally recommended in the original request. Your code uses the DataSourceCount instead. I didn't want to use DataSourceCount in mine, because I'm storing that value so that it remembers your page size selection, and the number of items in the grid could change. I played around with it a bit, and found that the bug occurs if the page size is set to 2,147,483,572 or more. I have no idea what's special about that page size. Anything less than that and it works fine. So I can just use a sufficiently large number instead of Int32.Max and it works.
Thanks for all your help!
Your code worked fine; I finally saw the difference between mine and yours. My code was using Int32.Max as the value of the "All" option, which was what was originally recommended in the original request. Your code uses the DataSourceCount instead. I didn't want to use DataSourceCount in mine, because I'm storing that value so that it remembers your page size selection, and the number of items in the grid could change. I played around with it a bit, and found that the bug occurs if the page size is set to 2,147,483,572 or more. I have no idea what's special about that page size. Anything less than that and it works fine. So I can just use a sufficiently large number instead of Int32.Max and it works.
Thanks for all your help!
0
Hello Robert,
Thanks for the update. If you believe there is a bug in the control, please isolate it in a simple, runnable demo so that we can debug it locally.
Best regards,
Daniel
the Telerik team
Thanks for the update. If you believe there is a bug in the control, please isolate it in a simple, runnable demo so that we can debug it locally.
Best regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.