Is it possible to disable the automatic scrolling?

When using a ComboBoxAdv to display a long list of items, a scrollbar is added. In this case, if you move the mouse cursor to the last visible item, automatic scrolling occurs. Is it possible to disable this behavior? Because it's very annoying and makes selection of items difficult. It is enough that user can scroll through the list using the scrollbar or the mousewheel; we don't want the list to automatically scroll when the user tries to select the last visible item.

Best regards,
Marcus

3 Replies

DV Duraimurugan Vedagiri Syncfusion Team May 8, 2020 03:24 PM UTC

Hi Marcus,

Thanks for using syncfusion products.

We have analyzed the reported query “Automatic scrolling happens when move to last visible item” and we have achieved the same MS control behavior. Since, you can’t able to disable that scrolling effect.

Please refer the below sample and video for your reference.

Sample: https://www.syncfusion.com/downloads/support/forum/154046/ze/ComboBoxAdvSample1501983436.zip  

Video: https://www.syncfusion.com/downloads/support/forum/154046/ze/ComboBoxAdvScr1791733470.zip  

If we misunderstood your requirement kindly brief your requirement as video it would be help for us to provide the solution as soon as possible.

Regards,
Durai



MJ Marcus johansson May 11, 2020 07:10 AM UTC

Hi and thanks for the reply,


We found a workaround to disable the behavior, in case someone else is annoyed by it.

XAML:

  <syncfusion:ComboBoxAdv.ItemContainerStyle>
    <Style TargetType="syncfusion:ComboBoxItemAdv">
      <EventSetter Event="RequestBringIntoView" Handler="ComboBox_RequestBringIntoView"/>
    </Style>
  </syncfusion:ComboBoxAdv.ItemContainerStyle>


CS:

  private void ComboBox_RequestBringIntoView(object sender, RequestBringIntoViewEventArgs e)
  {
    e.Handled = true;
  }


Regards,
Marcus



DV Duraimurugan Vedagiri Syncfusion Team May 12, 2020 11:05 AM UTC


Hi Marcus,

Thanks for your update.

We are very pleased to hear that the reported requirement is achieved at your end. Please get back to us if you need any other assistance.

Regards,
Durai

Loader.
Up arrow icon