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

Scrolling problem

2 Answers 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 10 Feb 2009, 11:43 AM

I made a simple example:

public class TestData  
    {  
        public static IEnumerable<TestData> Generate(int count)  
        {  
            var rnd = new Random();  
 
            for (int i = 0; i < count; ++i)  
            {  
                yield return new TestData()  
                {  
                    SomeDtmProperty = DateTime.Now,  
                    SomeFltProperty = (float)rnd.Next() / (float)rnd.Next(),  
                    SomeIntProperty = rnd.Next(),  
                    SomeStrProperty = new string((char)((rnd.Next() % ((int)'z' - (int)'a')) + (int)'a'), rnd.Next() % 20 + 10)  
                };  
            }  
        }  
 
        public string SomeStrProperty { getset; }  
        public int SomeIntProperty { getset; }  
        public DateTime SomeDtmProperty { getset; }  
        public float SomeFltProperty { getset; }  
    } 
public
 partial class Window1 : Window  
    {  
        ObservableCollection<TestData> m_TestDataCollection = null;  
 
        public Window1()  
        {  
            InitializeComponent();  
            InitData();  
            gvTest.ItemsSource = m_TestDataCollection;  
        }  
 
        void InitData()  
        {  
            m_TestDataCollection = new ObservableCollection<TestData>(TestData.Generate(100));  
            m_TestDataCollection.Add(  
                new TestData()  
                {  
                    SomeStrProperty = "The last row"  
                });  
        }  
    } 
<Window x:Class="WpfApplication6.Window1"  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  
    Title="Window1" Height="300" Width="500">  
    <Grid>  
        <telerik:RadGridView x:Name="gvTest"/>  
    </Grid>  
</Window> 
Steps to reproduse:

1) Run this code

2) Scroll the grid down using right scrollbar

3) last row (marked "The last row") is half-visible (or invisible at all), despite of right scrollbar is bottom down (if you can't reproduce please set some another value in generate method)

4) Now scroll using mouse wheel. Everything is OK.

PS. I use Q3 without SP1 (will migration to SP1 fix this?)

2 Answers, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 11 Feb 2009, 10:56 AM
Hi Alexander,

I tested with the Q3 assemblies (no SP) and was able to reproduce your problem. With the SP assemblies I was unable to reproduce it, even using several different values in the Generate method, so the upgrade to SP will fix the problem.

All the best,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Igor
Top achievements
Rank 2
answered on 18 Dec 2012, 02:56 PM
Hi !

I have the scrolling issue with the latest internal build (2012.3.1210)
attaching my screenschots (1 - before expand details, where scrolling works fine, 2 - after expanding details at the very bottom record). to reproduce it you need to create GridView with details template and expand some of them. Then scroll down and view the very bottom of the grid. Latest records are not visible and i unable to scroll down to view them.

Have attached the example in the different ticket, but the source code is the same.
http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=641011

Tags
GridView
Asked by
Alexander
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Igor
Top achievements
Rank 2
Share this question
or