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

Limited to five items

17 Answers 138 Views
LoopingList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nigel
Top achievements
Rank 1
Nigel asked on 23 Jun 2011, 12:58 PM
'm trying to set up a Looping List with IsLoopingEnabled set to false. Currently it only displays the first five items out of the twenty and doesn't request any more from the data source.

<telerik:RadLoopingList DataSource="{Binding Teams}" IsLoopingEnabled="False"/>

var teamsList = teamsService.GetTeams().ToList();
 
teams = new LoopingListDataSource(teamsList.Count);
 
teams.ItemNeeded += (s, a) =>
{
    a.Item = new LoopingListDataItem(teamsList[a.Index].Name);
};
 
teams.ItemUpdated += (s, a) =>
{
    a.Item.Text = teamsList[a.Index].Name;
};

Debugging this the ItemNeeded event is only raised five times on startup, neither event is raised again.

Thanks

17 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 24 Jun 2011, 03:30 PM
Hello Nigel,

Thanks for contacting us and for reporting this issue.

We have investigated the case and have been able to reproduce the undesired behavior on our side. I would like to inform you that we are going to provide a fix for this in Q2 2011 Beta 2 due to June 28.

I have updated your telerik account with 1000 points for bringing our attention to this issue.

Best wishes,
Deyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Nigel
Top achievements
Rank 1
answered on 11 Jul 2011, 11:47 PM
I've just updated my solution to the following version 2011.2.629.1037 and can confirm the problem has not been resolved. Having the above code with IsLoopingEnabled as true more than five items are requested. With IsLoopingEnabled as false only five items are requested.
0
Deyan
Telerik team
answered on 12 Jul 2011, 07:56 AM
Hello Nigel,

Thanks for writing back.

Due to some higher priority tasks we did not manage to include the fix in Q2 2011 Beta 2. However, the fix will be available in the official Q2 2011 release of RadControls for Windows Phone 7 that is scheduled for tomorrow.

Please excuse us for any inconvenience caused.

Kind regards,
Deyan
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
MNP
Top achievements
Rank 1
answered on 13 Jul 2011, 02:59 PM
Just wanted to say I've confirmed that this is now fixed in Q2 2011. 

Thanks very much.
0
Deyan
Telerik team
answered on 14 Jul 2011, 08:35 AM
Hi Matt,

Indeed, the fix is in the Q2 2011 box. If you have any issues or need assistance with using RadLoopingList, do not hesitate to get back to us.

Best wishes,
Deyan
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
EmpowerIT
Top achievements
Rank 2
answered on 15 Aug 2011, 11:46 PM
Hi Guys,

I seem to have to be suffering this problem with my RadLoopingList.

The datasource has 9 items but on only 5 items are displayed.

The ItemUpdated is called but it only requests the following indexes - 0,1,2,3,4.

I am currently using the latest internal build of the controls.

Regards,
Tarek
0
Deyan
Telerik team
answered on 17 Aug 2011, 08:34 AM
Hello Empowerit,

This issue has already been addressed in our latest release. Could you please make sure that you are using the correct version?

If after updating your references the issue persists, please prepare a sample project that we can use to reproduce it and send it to us by opening a new support ticket. In this way we will be able to directly investigate the case and see what goes wrong.

Thanks for your time.

Best wishes,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Tau Sick
Top achievements
Rank 1
answered on 14 Oct 2011, 09:42 PM
I have this issue now with version 2011.3.920.2040 of Telerik.Windows.Controls.Primitives
0
Anthony
Top achievements
Rank 1
answered on 16 Oct 2011, 01:34 AM
Hi,

I too am experiences this behavior and it appears to be directly associated to the Height of either the List or the item.  If you increase the height of the list or decrease the height of the item, more items will appear.

Looking forward to a fix. :)

Thanks,
Ant
0
Deyan
Telerik team
answered on 17 Oct 2011, 09:40 AM
Hi Tau,

I would kindly like to as you to prepare a sample WP7 project containing a RadLoopingList control that reproduces the undesired behavior. Since we are currently not aware of similar issues, this will help us investigate the case and see what goes wrong.

Thanks for your time.

All the best,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Anthony
Top achievements
Rank 1
answered on 17 Oct 2011, 02:07 PM
Hi Deyan,

I've submitted a ticket with an example.  Ticket Id 474089

I am also using version 2011.3.920.2040

Thanks,
Ant
0
Deyan
Telerik team
answered on 17 Oct 2011, 02:59 PM
Hello Anthony,

Thanks for the project.

We have handled your case. The reason for the undesired behavior is because you're not handling the ItemUpdated event of LoopingListDataSource which is needed to remap the existing visual looping list items to data items from the source collection.

Take a look at your ticket for further details.

Thanks for your time.

Greetings,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Anthony
Top achievements
Rank 1
answered on 17 Oct 2011, 04:26 PM
My apologies for not RTFM! :P

After reading on LoopingList and reviewing the example provided in ExamplesCS_WP I was able to implement both the ItemNeeded and the ItemUpdated events and the control works beautifully.

Thanks again for the super fast response! :)

Take care,
Ant
0
Georgi
Telerik team
answered on 18 Oct 2011, 10:01 AM
Hi Anthony,

We are happy to know that the problem is no longer present.

Do not hesitate to write us back should you have any other questions/problems with our tools.

All the best,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Louis
Top achievements
Rank 1
answered on 01 Dec 2011, 04:22 PM
Hi,

I've spent a lot of time with the looping list and I'm still seeing a similar issue and I've tried the Q2 (latest updated version) and the Q3 release of the looping list.  I monitor items needed (and feed items to it from there) and only see it requesting for five even though I initialize the data source with 6 for instance (at time of instantiation).  Then when I initialize it with 4 for instance it will request for item 0,1,2 and then request for item '0' again but not the rest of the items after -- this causes the undesired effect of breaking the loop.

I found it also depends on the width of the control (Using it in a horizontal orientation).  If I make itemWidth smaller it will try to request for five.  If I make itemWidth larger (fewer items visible) then it requests for 4.

Do you have any ideas why I'd get this undesired effect?

I tried:
a) extending the loopinglistdatasource with my own and overriding GetItemCore and UpdateItemCore
b) using the looplistdatasource and then attaching to ItemNeeded and ItemUpdated.  (Did various combinations of this)

But no matter how I try to handle this I still get the same effect of:
a) Limited to four or five items
b) Looping undesirably where it will start to request for a buffer fill till it reaches four or five items (i.e. if I had four items in my data source, it will request item 0, 1, 2, 3, 0 -- which is looping but it stops at the last 0 so the loop will show item 0 and 0 back to back in the loop).

It seems to act properly when I set IsLoopingEnabled to false but that's not what I need.  I prefer the looping list because it always centers on the selected item.

Thanks in advance!
0
Deyan
Telerik team
answered on 02 Dec 2011, 08:08 AM
Hello Louis,

Thanks for contacting us.

We are currently not aware of similar issues in RadLoopingList. We have a couple of demos of the control in our Telerik Demos application that are using the control in multiple scenarios and it seems to work as expected.

The only way for us to make sure that we properly check whether everything is OK is to take a look at your code and see what causes the undesired behavior. Therefore if will be great if you manage to send us a demo project that we can take a look at.

Meanwhile, you can also make sure that you rise the PropertyChanged event for each property change in your LoopingListDataItem. Not firing this event is a common implementation bug that causes undesired effects in RadLoopingList.

Also note that you should open a new support ticket in order to be able to attach your project.

Thanks for your time.

We look forward to receiving the requested details.

Regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Louis
Top achievements
Rank 1
answered on 05 Dec 2011, 03:00 PM
I fell for the common mistake! I didn't raise the property changed event. The looping list works beautifully. Thanks for the quick response!
Tags
LoopingList
Asked by
Nigel
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Nigel
Top achievements
Rank 1
MNP
Top achievements
Rank 1
EmpowerIT
Top achievements
Rank 2
Tau Sick
Top achievements
Rank 1
Anthony
Top achievements
Rank 1
Georgi
Telerik team
Louis
Top achievements
Rank 1
Share this question
or