AutoGenerateColumns Ignored under certain conditions

2 posts, 0 answers
  1. StevenDale
    StevenDale avatar
    100 posts
    Member since:
    Apr 2007

    Posted 14 Oct 2009 Link to this post

    I have the latest build of WPF Q2 SP1 and I am getting the following error:
    A TwoWay or OneWayToSource binding cannot work on the read-only property 'xxx' of type 'TelerikTestProject.TestClass'. This error happens whenever I place the GridView inside of a Actipro PopupButton and then inside of a Actipro ResizableContentControl. If I take the RadGrid out of the control I don't get the error. I have a sample project I can send you to reproduce the error.

    <Window x:Class="TelerikTestProject.Window1" 
        Title="Window1" Height="300" Width="300"   
            <shared:PopupButton Grid.Column="1" HorizontalContentAlignment="Left" BorderThickness="0" BorderBrush="Transparent" PopupContent="{Binding}" VerticalContentAlignment="Center" Margin="0" Background="Transparent" IsRounded="True" DisplayMode="Merged">  
                        <shared:ResizableContentControl MinHeight="50" MinWidth="300" Padding="1" > 
                            <telerik:RadGridView ItemsSource="{Binding Items}" AutoGenerateColumns="False" ShowGroupPanel="False">  
                                    <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Path=Comments}" UniqueName="{x:Null}"/>                                  


    Billy Jacobs
  2. Milan
    Milan avatar
    1989 posts

    Posted 15 Oct 2009 Link to this post

    Hi Billy Jacobs,

    Under some conditions AutoGenerateColumns does get ignored but luckily we have fixed this problem for our Q3 release. For the time being you could try to place the AutoGenerateColumns attribute on first place (before the ItemsSource property) and you should get consistent behavior.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top