Scroll end load more data

4 posts, 0 answers
  1. Davut
    Davut avatar
    2 posts
    Member since:
    Jun 2014

    Posted 05 Jun 2014 Link to this post

    hi, i purched Telerik WP8 and i used  RadDataBoundListBox  ,  after scroll end  i loaded more data it is working well but  after  data loaded  the page go to top every time

    how can i load loada without scroll go to top

    thank you


    this is code

        private void newsList(object sender, Telerik.Windows.Controls.ScrollStateChangedEventArgs e)
            {
                if (e.OldState == Telerik.Windows.Controls.ScrollState.BottomStretch || e.OldState == Telerik.Windows.Controls.ScrollState.ForceStopBottomTopScroll)
                {
                    MessageBox.Show("Load More data");
                }
            }
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 09 Jun 2014 Link to this post

    Hi Davut,

    I believe I have answered this question in the support ticket you filed. For the sake of completeness, I will paste my reply here. Please, keep the communication in a single place, so that it is easier for tracking. Thank you.

    Loading items on demand is covered in the "on demand" example in our QSF. As you can see, the control keeps the same items in view, even when new items are loaded. For this purpose you need to use the DataRequested event. Please, find more information in our online help:

    Best regards,
    Ves
    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.

     
  3. DevCraft banner
  4. Danny
    Danny avatar
    11 posts
    Member since:
    Sep 2013

    Posted 22 Jun 2015 in reply to Ves Link to this post

    Hi,

    Sorry, I know this is an old post but I am trying to implement the OnDemandManual option and am following the example provided in the link. The code for the button's click event is missing in the example http://www.telerik.com/help/windows-phone/raddataboundlistbox-features-datavirtualization-ondemandmanual.html. What is the correct way to link the button's click event to the DataBoundListBox DataRequested event?

    Thanks

  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 25 Jun 2015 Link to this post

    Hi Danny,

    In the button's Click event handler you need to call the DataRequested event handler manually. You will not need to send any event args. Please, find an example in our Quick Start Framework:
    C:\Program Files (x86)\Telerik\UI for Windows Phone 8 Q2 2015\QSF\Examples.WindowsPhone\DataBoundListBox\OnDemand.xaml.

    In manual mode, OnListBox_DataRequested is called once on initial load and then it is called from within the button Click event handler.

    Best regards,
    Ves
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top