RadGridView invalid auto-scrolling

3 posts, 0 answers
  1. Simon
    Simon avatar
    23 posts
    Member since:
    Apr 2012

    Posted 27 Feb 2013 Link to this post

    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; }
        }

  2. Simon
    Simon avatar
    23 posts
    Member since:
    Apr 2012

    Posted 28 Feb 2013 Link to this post

    Anyone from telerik? This is a really big issue in my application right-now.

    Thanks in advance
  3. Simon
    Simon avatar
    23 posts
    Member since:
    Apr 2012

    Posted 04 Mar 2013 Link to this post

    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
Back to Top