Dragging a RadGridView's column header for reordering doesn't move horizontal scroll bar automatically when the mouse is dragging to extreme left or right.

1 Answer 53 Views
GridView
Premkumar
Top achievements
Rank 1
Iron
Iron
Premkumar asked on 20 Nov 2023, 11:25 AM
Hi Telerik,
I have 30+ columns in my RadGridView and using CellTemplate and CellEditTemplate for most of the columns.
I want to reorder a column in runtime. When I click and drag a column header to extreme right or left, the horizontal scroll bar in the RadGridView is not scrolling automatically.
Is it a default behavior? Or do we have any property to enable this feature.
Please let us know ASAP.

Thank you.

Regards,
Muhammad Azhar Shah.

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 22 Nov 2023, 03:09 PM

Hello Muhammad,

To enable autoscrolling during drag/drop, you can utilize the ScrollingSettingsBehavior attached properties. For example:

<telerik:RadGridView GroupRenderMode="Flat" 
                     telerik:ScrollingSettingsBehavior.IsEnabled="True"
                     telerik:ScrollingSettingsBehavior.ScrollAreaPadding="30"
                     telerik:ScrollingSettingsBehavior.ScrollStep="15"
                     telerik:ScrollingSettingsBehavior.ScrollStepTime="00:00:00.01">

You can also find an example in the following forum.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Premkumar
Top achievements
Rank 1
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or