BringIntoView doesn't work

9 posts, 0 answers
  1. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 15 Aug 2014 Link to this post

    Hi,
    it seems that BringIntoView method doesn't work on the new DataBoundListBox, while has always worked on Windows Phone 8.0 in other UI product.
    Indeed when invoked, the list content becomes blank and if I scroll then the content reappers, but the scroll of items stutters and  shows always the same items (a few ) to then go up again to the focused item.

    On other hand the Listbox control has no problem in ScrollIntoView method.

    Regards.

    Alessandro Valente


  2. Beshoy
    Beshoy avatar
    3 posts
    Member since:
    May 2014

    Posted 18 Aug 2014 Link to this post

    I have noticed random stuttering (as you mentioned) in Windows Phone 8.1 in general. The Xbox Music app, my app, all seem to have this issue.
  3. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 18 Aug 2014 in reply to Beshoy Link to this post

    Beshoy said:I have noticed random stuttering (as you mentioned) in Windows Phone 8.1 in general. The Xbox Music app, my app, all seem to have this issue.


    Hi,
    problem is that list becomes blank when BringIntoView is invoked! :(
    As for stuttering, it doesn't happen always.
    I hope it'll be fixed in next beta release.

  4. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 20 Aug 2014 Link to this post

    Hi,

    Indeed I was able to reproduce this erroneous behavior(stuttering) and we will address it for our official release. However, I cannot get a blank list using the BringIntoView() method. Could you please send me a sample project so that we can further investigate this? 

    Thanks for the valuable feedback.

    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 20 Aug 2014 in reply to Ivaylo Gergov Link to this post

    Hi Ivaylo,
    thank for your assistance.
    The blank list is caused because the itemssource is binded to a viewmodel property (observablecollection). The BringIntoView method is invoked in a button click sub.
    This behavior doesn't happen if I build a new simple project where itemssource is simply a List<string> built into OnNavigatedTo event and NOT binded to a viewmodel property. Nevertheless BringIntoView fails to focus the list on a element such as that on position 20. I do this on a button click sub: 

    string s = this.list.ItemsSource.OfType<string>().ElementAt(80);
    this.list.BringIntoView(s);








  6. Vladislav
    Admin
    Vladislav avatar
    275 posts

    Posted 25 Aug 2014 Link to this post

    Hello Alessandro,

    Thank you for the additional information provided. I think that I am able to reproduce the described problem. It seems that the "blank list" appears only before any scrolling is made in the RadDataBoundListBox (if I manually scroll to some element, after that the "blank list" do NOT appear). And moreover the requested item is not brought correctly into view (the view is scrolled "near" it, but not exactly to it). This definitely seems like a problem/bug and we will do our best to resolve it for some consecutive release.

    I have attached a sample project showing my attempt to reproduce the described issue.
    Can you please check it and modify it (if necessary), in order to be sure that we are discussing exactly the same issue?

    Thank you in advance.

    Regards,
    Vladislav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 25 Aug 2014 in reply to Vladislav Link to this post

    Hi Vladislav ,

    here it is my experience using your demo project with my Nokia Lumia 930 (best WP so far ;) ).
    1) the list is loaded
    2) I click the button (so without scrolling the list)
    3) the list becomes blank
    4) I click the button again and the list loads as usual as in 1) but there is no focus element even though I can scroll the list without problems
    5) I click again the button and the list focuses near the element choosed to focus on code
    6) I click again the button and this time focuses on the right element .

    On the other hand:

    1) if I scroll the list before I click the button the list focuses first near the right element and if I click again then focuses on the right element.
    2) the *worst side effect* is that the list scrolls repeating the same elements :( :( :(

    You can count on me as beta tester, I absolutely love the new windows Phone 8.1 UI and new elements but withouth your RadDataBoundList I think I'll never publish a very good app.

    Hope you'll fix these issues soon :)

    Best Regards.

    Alessandro

     
  8. Vladislav
    Admin
    Vladislav avatar
    275 posts

    Posted 27 Aug 2014 Link to this post

    Hi Alessandro,

    Thank you very much for your collaboration.
    We can confirm that the described problems are caused by a bug in the RadDataBoundListBox control.
    It is logged here, where you can check it's progress and vote for it.

    We will do our best to fix it for the upcoming official release (mid October).
    And as soon it is fixed we will make a custom build for the participants in the "Early adopters" program.

    Your Telerik points are updated as a small appreciation for your valuable feedback.

    Regards,
    Vladislav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 27 Aug 2014 in reply to Vladislav Link to this post

    Hi Vladislav,
    thank you for updating my Telerik points!
    I'm very glad to collaborate with such a great team which let me develop beautiful and smart apps.

    :)

Back to Top