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

Data Virtualization OnDemandManual

2 Answers 28 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.
Danny
Top achievements
Rank 1
Danny asked on 23 Jun 2015, 06:37 PM

Hi 

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

2 Answers, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 25 Jun 2015, 07:07 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
0
Danny
Top achievements
Rank 1
answered on 27 Jun 2015, 11:15 AM
Perfect thank you!
Tags
DataBoundListBox
Asked by
Danny
Top achievements
Rank 1
Answers by
Ves
Telerik team
Danny
Top achievements
Rank 1
Share this question
or