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

Scroll end load more data

3 Answers 72 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Davut
Top achievements
Rank 1
Davut asked on 05 Jun 2014, 06:43 AM
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");
            }
        }

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 09 Jun 2014, 03:33 PM
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.

 
0
Danny
Top achievements
Rank 1
answered on 22 Jun 2015, 01:06 PM

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

0
Ves
Telerik team
answered on 25 Jun 2015, 07:06 AM
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
Tags
DataBoundListBox
Asked by
Davut
Top achievements
Rank 1
Answers by
Ves
Telerik team
Danny
Top achievements
Rank 1
Share this question
or