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

[Solved] OData Demo Bug

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 25 Apr 2013, 06:33 PM

In the demo ODataDataSource - Filtering, Sorting and Paging with RadGrid, the paging does not work as expected.  The page size can be changed, but it does not "stick" as you move between pages.  For example, change the page size to 10 and move to the second page and you will find that while 10 is still the page size shown on the grid, that 20 rows are shown.

I noticed this bug in my own code and traced it back to how the demo worked.  I have not yet solved the issue (despite the fact that it looks like there is an easy fix when you examine the code).  Can you provide any guidance on this issue and then get the demo fixed so this bug doesn't spread all around the internet as people copy the demo code? Thanks. :)

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 30 Apr 2013, 10:42 PM
Hi Mark,

Indeed the described behaviour can be observed in the online demo. I have forwarded this problem to the developers responsible for RadODataDataSource and they will fix the demo for the next official verison of the conrtols.

Keep in mind that Grid and ODataDataSourse are working indipendantly and the demo shows how you can implement paging of RadGrid  entirely on the client throught the RadODataDataSource control. Therefore, the paging can not be changed from grid PageSize combo. However, to prevent this from happening you can remove PageSize control by setting PageSizeControlType property in PagerStyle to None, thus the combo will no appear.

Additionally, I have updated your Telerik points.

All the best,
Pavlina
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.
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or