How to Bind ScrollStateChanged for RadDataBoundListBox ?

Thread is closed for posting
2 posts, 0 answers
  1. Pardeep
    Pardeep avatar
    1 posts
    Member since:
    Dec 2012

    Posted 19 Jul 2016 Link to this post

    We are trying to bind a ScrollStateChanged event in RadDataBoundListBox such as :

    Xaml Code :

    <telerikPrimitives:RadDataBoundListBox x:Name="MessagesList">
                                <i:EventTrigger EventName="ScrollStateChanged">
                                    <Command:EventToCommand Command="{Binding ScrollChangedCommand}" />
                                <telerikPrimitives:StackVirtualizationStrategyDefinition ReorderMode="MoveItemsUp"/>


    and In our ViewModel we used RelayCommand as :

     public ICommand ScrollChangedCommand
                    if (_ScrollChangedCommand == null)
                        _ScrollChangedCommand = new RelayCommand<object>(ScollChatList, (param) => ScrollChangedCommandCanExecute);

                    return _ScrollChangedCommand;

            private void ScollChatList(object parameter)
                ScrollStateChangedEventArgs scrollChangedEventArgs = parameter as ScrollStateChangedEventArgs;
                //if (scrollChangedEventArgs != null && scrollChangedEventArgs. == ScrollState.Scrolling)


    We are successfully able to bind this event in our ViewModel but 'scrollChangedEventArgs' value always be NULL. Any suggestion please..

    Also we are trying to get either RadDataBoundListbox is scrolling upward or downward. Is it possible with RadDataBoundListBox ?



  2. Rosy Topchiyska
    Rosy Topchiyska avatar
    586 posts

    Posted 22 Jul 2016 Link to this post

    Hi Pardeep,

    Thank you for contacting us.

    The command parameter is not related to the event args, so if you do not set/bind it to a value, it will be null. Unfortunately, the DataBoundListBox does not provide information about the scrolling direction.

    Rosy Topchiyska
    Telerik by Progress
    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
Back to Top