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

RadLoopingList

6 Answers 20 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
Jörg
Top achievements
Rank 1
Jörg asked on 30 Jul 2019, 03:59 AM

Hi,

according to the documentation, the RadLoopingList has 2 events: SelectedIndexChanged and ScrollCompleted.

But the ScrollCompleted event doesn't know the control! How do I know ScrollCompleted?

Thank you
Jörg

6 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 30 Jul 2019, 10:07 AM
Hi Jörg,

Indeed, RadLoopingList does not provide ScrollCompleted event - I am so sorry for the misleading information in the documentation, I will update the article right away.

You could handle when scrolling is finished by creating a custom class that inherits from RadLoopingList and override its OnManipulationCompleted  - this is needed as the event is not public.  In the event handler you could get the SelectedIdex of the LoopingList.

Here is a quick sample:

public class CustomLoopingList : RadLoopingList
{
    protected override void OnManipulationCompleted(ManipulationCompletedRoutedEventArgs e)
    {
        base.OnManipulationCompleted(e);
        var newSelectedItem = this.SelectedIndex;
    }
}

 I hope this would be of help.

Regards,
Yana
Progress 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
Jörg
Top achievements
Rank 1
answered on 30 Jul 2019, 01:26 PM

Hi Yana,

thank you for the quick answer!

I did it that way, but unfortunately it doesn't work, the event isn't triggered.

I tried to upload the project with, but only pictures are possible, not Visual Studio projects.

Thank you
Jörg

0
Yana
Telerik team
answered on 31 Jul 2019, 10:36 AM
Hello Jörg,

I have attached my sample app where I've tested the event and it works properly in it. Could you download it and give it a try? What is different in your case?

Indeed, in the forums only image attachments are allowed - you would need to open a support ticket through our ticketing system and attach other types of files there.

Thank you for the understanding.

Regards,
Yana
Progress 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
Jörg
Top achievements
Rank 1
answered on 01 Aug 2019, 09:27 AM

Halo Yana,

Thank you for the example. But even in your example, the event is not raised.

I did it in my example, just like in your example. In C# and VB.

At the moment I cannot explain it to myself.

Thank you

Jörg

0
Accepted
Yana
Telerik team
answered on 05 Aug 2019, 11:49 AM
Hi Jörg,

That's strange - I recorded a short video showing how this works at my side, could you please check it and let me know whether I am not missing anything?

Regards,
Yana
Progress 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
Jörg
Top achievements
Rank 1
answered on 06 Aug 2019, 12:23 PM
Hi Yana,

it works!

I've used your video to detect my mindwork. I assumed that the event would be triggered just like SelectedItemChanged, not by manually moving the LoopList.

Thank you for your efforts,
Jörg
Tags
General Discussion
Asked by
Jörg
Top achievements
Rank 1
Answers by
Yana
Telerik team
Jörg
Top achievements
Rank 1
Share this question
or