Limited to five items

18 posts, 0 answers
  1. Nigel
    Nigel avatar
    4 posts
    Member since:
    Oct 2010

    Posted 23 Jun 2011 Link to this post

    '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
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 24 Jun 2011 Link to this post

    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>>
  3. DevCraft banner
  4. Nigel
    Nigel avatar
    4 posts
    Member since:
    Oct 2010

    Posted 11 Jul 2011 Link to this post

    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.
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 12 Jul 2011 Link to this post

    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!

  6. MNP
    MNP avatar
    40 posts
    Member since:
    Apr 2008

    Posted 13 Jul 2011 Link to this post

    Just wanted to say I've confirmed that this is now fixed in Q2 2011. 

    Thanks very much.
  7. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 14 Jul 2011 Link to this post

    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!

  8. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 15 Aug 2011 Link to this post

    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
  9. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 17 Aug 2011 Link to this post

    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 >>

  10. Tau Sick
    Tau Sick avatar
    14 posts
    Member since:
    Jul 2009

    Posted 14 Oct 2011 Link to this post

    I have this issue now with version 2011.3.920.2040 of Telerik.Windows.Controls.Primitives
  11. Anthony
    Anthony avatar
    17 posts
    Member since:
    May 2011

    Posted 15 Oct 2011 Link to this post

    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
  12. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 17 Oct 2011 Link to this post

    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 >>

  13. Anthony
    Anthony avatar
    17 posts
    Member since:
    May 2011

    Posted 17 Oct 2011 Link to this post

    Hi Deyan,

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

    I am also using version 2011.3.920.2040

    Thanks,
    Ant
  14. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 17 Oct 2011 Link to this post

    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 >>

  15. Anthony
    Anthony avatar
    17 posts
    Member since:
    May 2011

    Posted 17 Oct 2011 Link to this post

    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
  16. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 18 Oct 2011 Link to this post

    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 >>

  17. Louis
    Louis avatar
    2 posts
    Member since:
    Oct 2011

    Posted 01 Dec 2011 Link to this post

    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!
  18. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 02 Dec 2011 Link to this post

    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 >>

  19. Louis
    Louis avatar
    2 posts
    Member since:
    Oct 2011

    Posted 05 Dec 2011 Link to this post

    I fell for the common mistake! I didn't raise the property changed event. The looping list works beautifully. Thanks for the quick response!
Back to Top
DevCraft banner