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

Exception when tabbing through cells on edit with cell templates

1 Answer 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 20 Apr 2015, 07:44 PM

Working on a project where I have a cell template DataContext bound to the GridViewCell Value.

 <DataTemplate x:Key="DefaultCellTemplate">

 <StackPanel DataContext="{Binding Value, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}}">

                <TextBlock Text="{Binding PropertyValue, Mode=OneWay}"></TextBlock>
            </StackPanel>
 </DataTemplate>

<DataTemplate x:Key="DefaultCellEditTemplate">
            <StackPanel DataContext="{Binding Value, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}}">
                <TextBox Text="{Binding PropertyValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBox>
            </StackPanel>
        </DataTemplate>

When entering values and tabbing through cells, when on the last cell and tab to move to first cell of the next column, I'm getting an app crash.  This seems to occur when virtualization is on and there are enough columns to cause the grid to scroll horizontally, and the UpdateSourceTrigger of the edit template is PropertyChanged.  Attached is a sample project that can reproduce the error.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 22 Apr 2015, 12:18 PM
Hello Michael,

I tried to reproduce the described issue, however I was not able to. Could you please open a new support ticket with the mentioned sample project reproducing the issue attached, as there is no project sent on my side?

Best Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or