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

AutoGenerateColumns Ignored under certain conditions

1 Answer 41 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
StevenDale asked on 14 Oct 2009, 06:22 PM

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

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 15 Oct 2009, 02:55 PM
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.
Asked by
Top achievements
Rank 2
Answers by
Telerik team
Share this question