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

Detecting when DataBoundListBox is at the end

3 Answers 62 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.
Maxim
Top achievements
Rank 1
Maxim asked on 24 Feb 2013, 12:29 PM
How to detect when DataBoundListBox is at the end? It's not a problem with ListBox.

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 28 Feb 2013, 08:11 AM
Hello Maxim,

Thank you for your interest in RadDataBoundListBox.

I'd like to ask you to clarify what do you mean by "detecting" that the list is at the end and how you "detect" it in the native ListBox.

Thank you for your time.

Greetings,
Todor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Mikael
Top achievements
Rank 1
answered on 08 May 2013, 04:42 AM
The original poster probably has already solved this, but here's for those who end up reading the same thread. To detect when the user has scrolled the DataBoundListBox to end, use ScrollStateChanged-event:

XAML:
ScrollStateChanged="ItemsScrollStateChanged"

And on the code behind check the event argument's NewState:

            if (e.NewState == ScrollState.BottomStretch)
            {
                IsAtEnd = true;
            }
0
Deyan
Telerik team
answered on 08 May 2013, 11:04 AM
Hello,

The right approach of detecting when the bottom scrolling position has been reached is shown by Mikael.

Kind regards,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
DataBoundListBox
Asked by
Maxim
Top achievements
Rank 1
Answers by
Todor
Telerik team
Mikael
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or