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

[Solved] RadGridView inside a TabItem (PageDown key problem)

4 Answers 115 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexander
Top achievements
Rank 1
Alexander asked on 25 Aug 2011, 07:31 AM
Hi everyone,
In our application we use a RadTabControl. In one RadTabItem as a content is set a RadGridView, as in code below:
<UserControl x:Class="Test.MainPage"
    mc:Ignorable="d"
    xmlns:local="clr-namespace:Test"
    d:DesignHeight="300" d:DesignWidth="400">
  
    <UserControl.DataContext>
        <local:MainPageViewModel />
    </UserControl.DataContext>
      
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadTabControl>
            <telerik:RadTabItem Header="Phones">
                 <telerik:RadGridView ItemsSource="{Binding Phones}"></telerik:RadGridView>
            </telerik:RadTabItem>
        </telerik:RadTabControl>
    </Grid>
</UserControl>
The problem appears when user selects the first row and presses <PageDown> key on keyboard, there is now scroll. Instead it changes the selected item from the first to the last item in visible area and back. If user selects other row than first and presses <PageDown>, the first row is selected and then behavior is the same as in first case
Note: This problem appears only for RadGridViews placed in TabItems

4 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 25 Aug 2011, 01:26 PM
Hello Alexander,

The problem you reported has already been fixed. So, could you please give it a try with the latest internal build available and let us know if that worked for you.


Kind regards,
Vera
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Alexander
Top achievements
Rank 1
answered on 26 Aug 2011, 08:52 AM
Hello,
I have downloaded the latest internal build an bring it in our application. It works but not as expected. For instance in one grid pressing <PageDown> key scrolls the rows down(as expected), but when I came back to the first item and again press <PageDown> there is no effect.
Regarding the last internal build, I have noticed that Telerik.Windows.Controls.DependencyObjectExtention.FindChildByType<T>() method is missing. It will be greate to have it back again.

Thank you.

Kind regards,
Alexander
0
Alexander
Top achievements
Rank 1
answered on 26 Aug 2011, 09:11 AM
Please take in account that the height of rows in grid(where the problem appears) is not the same for all rows. Height for some rows is bigger, for others are smaller depending on the text inserted in the cells of row.
0
Vera
Telerik team
answered on 26 Aug 2011, 11:46 AM
Hi Alexander,

I am not able to reproduce the problem you described. May you take a look at the project I have attached to verify whether I am missing something. Let me know If you can reproduce the same behavior on it.
Regarding the missing method, it will be included in the next internal build.


All the best,
Vera
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Alexander
Top achievements
Rank 1
Answers by
Vera
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or