Detecting when DataBoundListBox is at the end

4 posts, 0 answers
  1. Maxim
    Maxim avatar
    1 posts
    Member since:
    Feb 2013

    Posted 24 Feb 2013 Link to this post

    How to detect when DataBoundListBox is at the end? It's not a problem with ListBox.
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 28 Feb 2013 Link to this post

    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.
  3. DevCraft banner
  4. Mikael
    Mikael avatar
    10 posts
    Member since:
    Jun 2012

    Posted 07 May 2013 Link to this post

    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;
                }
  5. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 08 May 2013 Link to this post

    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.
Back to Top