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

Virtualization problem

2 Answers 163 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steffen
Top achievements
Rank 1
Steffen asked on 11 May 2009, 10:42 AM
Hi,


I've got a little problem with grid virtualization. I've got this grid view:

<telerik:RadGridView Name="mailRecipients" 
                             Grid.Row="0" 
                             ItemsSource="{Binding ElementName=departmentMailRecipients, Path=MailRecipients}" 
                             ActionOnLostFocus="CommitEdit" 
                             AutoGenerateColumns="False"   
                             ColumnsWidthMode="Auto" 
                             ShowGroupPanel="False"   
                             Sorting="MailRecipients_Sorting" 
                             PreviewKeyDown="MailRecipients_PreviewKeyDown" 
                             telerik:GridViewCell.IsEditorVisibleChanged="MailRecipients_IsEditorVisibleChanged">  
            <telerik:RadGridView.Columns> 
                  
                <!-- Department column --> 
                <telerik:GridViewDataColumn DataMemberPath="Department"   
                                            CellStyle="{StaticResource GridViewCellStyle}" 
                                            HeaderText="{x:Static properties:StringResources.Department}"   
                                            IsReadOnly="False"   
                                            IsGroupable="False">  
                    <telerik:GridViewDataColumn.EditorSettings> 
                        <telerik:ComboBoxEditorSettings ItemsSource="{markup:EnumValues {x:Type entities:Department}}" /> 
                    </telerik:GridViewDataColumn.EditorSettings> 
                </telerik:GridViewDataColumn> 
                  
                <!-- Mail type column --> 
                <telerik:GridViewDataColumn DataMemberPath="MailType" 
                                            CellStyle="{StaticResource GridViewCellStyle}" 
                                            HeaderText="{x:Static properties:StringResources.Type}"   
                                            IsReadOnly="False" 
                                            IsGroupable="False">  
                    <telerik:GridViewDataColumn.EditorSettings> 
                        <telerik:ComboBoxEditorSettings ItemsSource="{markup:EnumValues {x:Type entities:MailType}}" /> 
                    </telerik:GridViewDataColumn.EditorSettings> 
                </telerik:GridViewDataColumn> 
                  
                <!-- Address column --> 
                <telerik:GridViewDataColumn HeaderText="{x:Static properties:StringResources.Email}"   
                                            CellStyle="{StaticResource GridViewCellStyle}" 
                                            IsReadOnly="False" 
                                            IsGroupable="False">  
                    <telerik:GridViewDataColumn.DataMemberBinding> 
                        <Binding Path="Address" NotifyOnValidationError="True">  
                            <Binding.ValidationRules> 
                                <validationRules:MandatoryRule /> 
                                <validationRules:EmailRule /> 
                            </Binding.ValidationRules> 
                        </Binding> 
                    </telerik:GridViewDataColumn.DataMemberBinding>      
                </telerik:GridViewDataColumn> 
                  
                <!-- Delete column --> 
                <telerik:GridViewColumn> 
                    <telerik:GridViewColumn.CellStyle> 
                        <Style TargetType="{x:Type telerik:GridViewCell}">  
                            <Setter Property="Template">  
                                <Setter.Value> 
                                    <ControlTemplate TargetType="{x:Type telerik:GridViewCell}">  
                                        <Border Background="{TemplateBinding Background}" 
                                                BorderBrush="{TemplateBinding BorderBrush}" 
                                                BorderThickness="{TemplateBinding BorderThickness}">      
                                            <Button Style="{StaticResource GridImageButton}" 
                                                    Click="Delete_Click">  
                                                <Image Source="{StaticResource Delete}" /> 
                                            </Button> 
                                        </Border> 
                                    </ControlTemplate> 
                                </Setter.Value> 
                            </Setter> 
                        </Style> 
                    </telerik:GridViewColumn.CellStyle> 
                </telerik:GridViewColumn> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 


When user delete the content of the address column for the first row (The mandatory rules mark the cell as invalid) then scroll until the last row and rescroll on the first row,
the old content is displayed. Is there a way to leave the invalid content of a cell when user scroll down/up? (I know that wrap the
grid into a ScrollViewer avoid the virtualization but I prefer find another way, this bug occurs also on Grid with huge amount of data in my application)



Xavier.

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 15 May 2009, 07:27 AM
Hi Steffen,

I have prepared a fix for the problem . It will be included in our next official release. Meanwhile if this one is critical for your project , you may find the fix included in our internal build. The new bits will be available for download for you  Monday afternoon .

Greetings,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steffen
Top achievements
Rank 1
answered on 15 May 2009, 09:25 AM
Thanks for you help :)

Xavier.
Tags
GridView
Asked by
Steffen
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Steffen
Top achievements
Rank 1
Share this question
or