Sorting a column with virtualization turned on issue

2 posts, 0 answers
  1. Ali
    Ali avatar
    6 posts
    Member since:
    Jul 2010

    Posted 07 Oct 2011 Link to this post

    Hi,

    I have an issue where I have a column with a CellTemplate containing a vertical stackpanel and two child items. When I sort on this column, some of the rows turn up as blank. This only happens when row virtualization is turned on. I've tried giving the stackpanel a fixed height but that doesn't fix the issue.

    <telerik:RadGridView x:Name="testGrid" EnableRowVirtualization="True" AutoGenerateColumns="False" Loaded="RadGridView_Loaded">
              <telerik:RadGridView.Columns>                          
                  <telerik:GridViewDataColumn Header="Item 3" DataMemberBinding="{Binding Item3}">
                      <telerik:GridViewDataColumn.CellTemplate>
                          <DataTemplate>
                              <StackPanel Orientation="Vertical">
                                  <TextBlock Text="{Binding Item3}" />
                                  <TextBlock Text="{Binding Item3}" />
                              </StackPanel>
                          </DataTemplate>
                      </telerik:GridViewDataColumn.CellTemplate>
                  </telerik:GridViewDataColumn>
              </telerik:RadGridView.Columns>
          </telerik:RadGridView>
  2. Ali
    Ali avatar
    6 posts
    Member since:
    Jul 2010

    Posted 09 Oct 2011 Link to this post

    I forgot to add that you have to scroll to the bottom of the grid view and then sort on a column for the issue to occur.
Back to Top