This question is locked. New answers and comments are not allowed.
Hi,
I'm setting up a GridView (using your first look example as a starting point), but am binding to a static resource rather than via codebehind as follows:
<telerik:RadGridView x:Name="radGridViewFirstLook" Margin="5"
ItemsSource="{Binding Path=SelectedFolder.Items, Mode=OneWay, Source={StaticResource AdminModelDS}}"
ColumnsWidthMode="Fill" AutoGenerateColumns="False">
<telerik:RadGridView.Columns>
<telerikGridView:GridViewDataColumn IsReadOnly="False" HeaderText="Name" UniqueName="Name" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
However, when running this, the AutoGenerateColumns="False" is being ignored and all columns are displayed. To fix, I need to have the AutoGenerateColumns value set before the ItemsSource... This doesn't seem correct behaviour and took quite a long time to realise this was an issue.
Can you confirm?
Thanks,
Ross
I'm setting up a GridView (using your first look example as a starting point), but am binding to a static resource rather than via codebehind as follows:
<telerik:RadGridView x:Name="radGridViewFirstLook" Margin="5"
ItemsSource="{Binding Path=SelectedFolder.Items, Mode=OneWay, Source={StaticResource AdminModelDS}}"
ColumnsWidthMode="Fill" AutoGenerateColumns="False">
<telerik:RadGridView.Columns>
<telerikGridView:GridViewDataColumn IsReadOnly="False" HeaderText="Name" UniqueName="Name" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
However, when running this, the AutoGenerateColumns="False" is being ignored and all columns are displayed. To fix, I need to have the AutoGenerateColumns value set before the ItemsSource... This doesn't seem correct behaviour and took quite a long time to realise this was an issue.
Can you confirm?
Thanks,
Ross