Exception when tabbing through cells on edit with cell templates

2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Feb 2015

    Posted 20 Apr 2015 Link to this post

    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.

  2. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 22 Apr 2015 Link to this post

    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.

     
Back to Top