Data Virtualization grid loses focus issue

1 posts, 0 answers
  1. Kushagra
    Kushagra avatar
    1 posts
    Member since:
    Jul 2013

    Posted 09 Jul 2013 Link to this post

    Hello,

    I am working on the Data Virtualization feature of RadGridView in Silverlight. Whenever I use Shift+DownArrow to select multiple records in the grid, it selects the records upto the load size. As soon as next set of data loads into grid, the grid loses focus and I am unable to select more records using Shift+DownArrow. Similar issue happens when I use Page Up/Page Down to scroll the grid. I found a post similar to this issue but solution was not provided there : http://www.telerik.com/community/forums/silverlight/gridview/data-virtualization-issues.aspx

    Please provide a solution or work around for the problem. I am using following sample code provided in Telerik Demos for Data Virtualization :

    <Examples:DataVirtualizationExample x:Class="Telerik.Windows.Examples.DataVirtualization.FirstLook.Example"
                                        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                                        xmlns:Examples="clr-namespace:Telerik.Windows.Examples"
                                        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                                        xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=QuickStart.Common"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Center">
        <telerikQuickStart:QuickStart.ExampleHeader>
            <TextBlock Text="Client Accounts"
                       Margin="8" />
        </telerikQuickStart:QuickStart.ExampleHeader>
        <Grid>
            <telerik:RadGridView ItemsSource="{Binding Customers}"
                                 AutoGenerateColumns="False"
                                 CanUserFreezeColumns="False"
                                 Width="635"
                                 MinHeight="386"
                                 MaxHeight="500"
                                 RowIndicatorVisibility="Collapsed"
                                 SelectionMode="Extended"
                                 EnableRowVirtualization="True"
                                 ShowGroupPanel="False">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn Header="CustomerID"
                                                DataMemberBinding="{Binding CustomerID}"
                                                ShowDistinctFilters="False" />
                    <telerik:GridViewDataColumn Header="Company Name"
                                                DataMemberBinding="{Binding CompanyName}"
                                                ShowDistinctFilters="False" />
                    <telerik:GridViewDataColumn Header="Contact Name"
                                                DataMemberBinding="{Binding ContactName}"
                                                ShowDistinctFilters="False" />
                    <telerik:GridViewDataColumn Header="Country"
                                                DataMemberBinding="{Binding Country}"
                                                ShowDistinctFilters="False" />
                    <telerik:GridViewDataColumn Header="City"
                                                DataMemberBinding="{Binding City}"
                                                ShowDistinctFilters="False" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
        </Grid>
    </Examples:DataVirtualizationExample>
Back to Top