This is a migrated thread and some comments may be shown as answers.

How to enable Mouse Wheel Scroll in GridViewTextBoxColumn

3 Answers 191 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ashutosh
Top achievements
Rank 1
ashutosh asked on 31 Jul 2015, 02:28 PM
I want to enable Mouse wheel scroll on GridViewTextBoxColumn. Please, help me.

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Aug 2015, 07:18 AM
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
0
ashutosh
Top achievements
Rank 1
answered on 03 Aug 2015, 01:59 PM

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;

 

 

0
Stefan
Telerik team
answered on 04 Aug 2015, 06:33 AM
Hi ,

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
Tags
GridView
Asked by
ashutosh
Top achievements
Rank 1
Answers by
Stefan
Telerik team
ashutosh
Top achievements
Rank 1
Share this question
or