Disabling combo scrolling in RadGridView

2 posts, 1 answers
  1. James
    James avatar
    3 posts
    Member since:
    Apr 2016

    Posted 18 Apr Link to this post

    Hi,

    We have a situation where we have the RadGridView with ComboBoxes in two of its columns. There are two Text columns as well.

    If the mouse is kept over a combo box column and the mouse scroll is used, the Grid scroll bar does not fire but the combo box changes selection. However if the mouse is kept above a Text column cell and the mouse scroll is used, the grid scroll bar works as usual. We don't want this disparity. We want the grid scroll bar to work even if the mouse is kept over the radcombobox column cell.

    Another challenge is the version of Telerik.Windows.Controls.GridView.dll that we have in our project is 2011.1.0419.35.

    I have tried to play with by hooking the OnPreviewMouseWheel event of the RadComboBox that resides in the grid cell. But seems it still makes the combo box scroll.

     

    var comboBox = sender as RadComboBox;
                if (comboBox != null)
                {
                    if (grid != null)
                    {
                        //Copy over event arg members and raise it
                        var newarg = new MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta)
                        {
                            RoutedEvent = RadGridView.PreviewMouseWheelEvent,
                            Source = sender
                        };
                        e.Handled = true;
                        grid.RaiseEvent(newarg);
                    }
                }

    Any help will be appreciated.


    regards,
    J
  2. Answer
    Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    368 posts

    Posted 20 Apr Link to this post

    Hello James,

    I have responded to your other forum thread regarding this topic. I kindly ask you to continue any further communication there.

    Regards,
    Dilyan Traykov
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top