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

Load on demand doesn't handle paging correctly

1 Answer 30 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Matt Jones
Top achievements
Rank 1
Matt Jones asked on 27 Aug 2012, 08:36 AM
RadRotator enables the left arrrow even though the InitialItemIndex is zero and WrapFrames is false. Logically, you can't go one page before the first item, yet RadRotator allows you to do that. What's even worse - when users click the left arrow the RadRotator silently loads third page and then locks up the users between first three pages that are even loaded in the reverse order (this is experienced with version 2012.1.215).

RadRotator also enabled the right arrow even though it does not know whether there are further items on the next page. And when users click that "Page Next" button one of two things happen - either the arrow gets disabled to mark that there is no more items (why RadRotator didn't find this out earlier? Isn't it missing a GetCount() method?) or it goes to next page and then again locks up users there and they cannot click on the "Previous Page" button. 

This happens slightly randomly, unfortunately, but often enough to confuse and scary users.

I believe this could be solved by preloading the first page not on demand but while page render. At this moment the RadRotator could be told the total number of items so it would behave properly when paging. I tried to fill the Items set of RadRotator from code behind and later turn on the load on demand but the RadRotator renders empty.

Can you please suggest a way of prefilling the first page from code behind and let the other pages be loaded on demand?

1 Answer, 1 is accepted

Sort by
0
Accepted
Slav
Telerik team
answered on 29 Aug 2012, 03:07 PM
Hello Matt,

Please check your support ticket on the matter for more information about the encountered behavior.

For future use of our support system I would suggest creating a separate forum thread/support ticket for each problem you want to report. This way the information on the scenario will be easier to track. This being said, let us continue our discussion in the support ticket.

All the best,
Slav
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
Rotator
Asked by
Matt Jones
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or