How to enable Mouse Wheel Scroll in GridViewTextBoxColumn

4 posts, 0 answers
  1. ashutosh
    ashutosh avatar
    2 posts
    Member since:
    Jul 2015

    Posted 31 Jul 2015 Link to this post

    I want to enable Mouse wheel scroll on GridViewTextBoxColumn. Please, help me.
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 03 Aug 2015 Link to this post

    Hello Ashutosh,

    Thank you for writing.

    RadGridView supports scrolling with the mouse wheel by default. What you have to do is to click on any cell in the grid in order to focus it and then use the mouse scroll to scroll it.

    I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

    Regards,
    Stefan
    Telerik
    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. ashutosh
    ashutosh avatar
    2 posts
    Member since:
    Jul 2015

    Posted 03 Aug 2015 in reply to Stefan Link to this post

    We have made a custom control by overriding GridViewTextBoxColumn as shown below. Mouse wheel scroll is not working. I am not getting any property to set for Mouse wheel scrollas well.

     using System.Data;
    using System.Drawing;
    using Telerik.WinControls;
    using Telerik.WinControls.UI;
    using System;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Text.RegularExpressions;
    namespace Viacom.Alias.UserControls
    {
    public class GridViewCustomColumn : GridViewTextBoxColumn
    {
    #region Variables
    public string DisplayMember { get; set; }
    public string CodeMember { get; set; }
    public string CellDataType { get; set; }
    public string CellMask { get; set; }
    public string CellDropDown { get; set; }
    public string CellDropDownCriteria { get; set; }
    public bool IsClearable { get; set; }
    public int DropDownHeight { get; set; }
    AliasDateEditor dateEditor;
    RadMaskedEditBoxEditor maskEditor;

     

     

  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 04 Aug 2015 Link to this post

    Hi Aashutosh,

    I have tested the provided column and it is not the reason why scrolling is not working. Perhaps you have a custom cell as well and if so, you should make sure that you properly set the ShouldHandleMouseInput and NotifyParentOnMouseInput properties of the elements in the custom cell to allow notification of the grid.

    If you still have issues, you can make a small sample using your column and demonstrating how the scrolling does not work, so I can investigate the precise case and help you resolve it.

    I am looking forward to your reply.

    Regards,
    Stefan
    Telerik
    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