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

RadGridView invalid auto-scrolling

3 Answers 152 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 28 Feb 2013, 01:30 AM
Hi,

I have a rad grid view with the settings below. I must bind an item that contains lot's of properties, meaning a lot of columns and meaning that the horizontal scrollbar will appear at the bottom of the grid. I therefore need to scroll around to view all columns / cells in the grid. When I select a cell to the very right of the grid (after scrolling), the scrollbar automatically jumps to the left, sometimes to the beginning of the grid, sometimes about mid-way in the grid. I then have to scroll back again manually to the right to find the cell I wanted to edit . This is highly inconvenient when you have to work on a grid with lot's of data. I attached a screenshot highlighting the issue.

I am using Telerik controls for WPF with Telerik.Windows.Controls.GridView.dll version: 2012.3.1017.40

Here's my grid configuration:

 <Grid>
        <telerik:RadGridView x:Name="MyGridView" AutoGenerateColumns="True" CanUserDeleteRows="False" CanUserInsertRows="False" CanUserReorderColumns="False"
                CanUserSortColumns="False" CanUserResizeRows="True" IsFilteringAllowed="False" ShowGroupPanel="False" ColumnWidth="250"
                ShowColumnHeaders="False" RowIndicatorVisibility="Collapsed" SelectionUnit="Cell" CanUserFreezeColumns="False" FrozenColumnCount="1"
                EditTriggers="Default">
            <telerik:RadGridView.Columns>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>

Here's my code:

  public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            List<Item> items = new List<Item>();
            items.Add(new Item() { TimeIn = DateTime.Now });
            items.Add(new Item() { TimeIn = DateTime.Now });
            items.Add(new Item() { TimeIn = DateTime.Now });
            items.Add(new Item() { TimeIn = DateTime.Now });
 
            this.MyGridView.ItemsSource = items;
        }
    }
 
    public class Item
    {
        public DateTime TimeIn { getset; }
        public string SomeTextItem { getset; }
        public string SomeTextItem1 { getset; }
        public string SomeTextItem2 { getset; }
        public string SomeTextItem3 { getset; }
        public string SomeTextItem4 { getset; }
        public string SomeTextItem5 { getset; }
        public string SomeTextItem6 { getset; }
        public string SomeTextItem7 { getset; }
        public string SomeTextItem8 { getset; }
        public string SomeTextItem9 { getset; }
        public string SomeTextItem10 { getset; }
        public string SomeTextItem11 { getset; }
        public string SomeTextItem12 { getset; }
        public string SomeTextItem13 { getset; }
        public string SomeTextItem14 { getset; }
        public string SomeTextItem15 { getset; }
        public string SomeTextItem16 { getset; }
        public string SomeTextItem17 { getset; }
        public string SomeTextItem18 { getset; }
        public string SomeTextItem19 { getset; }
    }

3 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 28 Feb 2013, 11:22 PM
Anyone from telerik? This is a really big issue in my application right-now.

Thanks in advance
0
Simon
Top achievements
Rank 1
answered on 04 Mar 2013, 04:26 PM
Hi Telerik,

I really need assistance with this issue. Is this a defect? Expected behavior? Can I work around it or am I doomed?

You have used me to much faster answers in the past. :-)

Thanks,

Simon
0
Shrikant
Top achievements
Rank 1
answered on 25 Jun 2020, 12:37 PM

Hi,

I am facing the same issue, the scroll bar automatically moves back to initial position or in middle.

Were you able to resolve this issue ?

Thanks,

Shrikant

Tags
GridView
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Shrikant
Top achievements
Rank 1
Share this question
or