Hi,
As the title describes it, I'm trying to bind the property "Columns" of a RadGridView to a static resource (could also be bound to a dependency property).
But of course, since this "Columns" property doesn't have a public setter, I can't simply set it with:
<telerik:RadGridView Columns="{Binding InitialColumns}"/>
Nor can I do:
<telerik:RadGridView>
<telerik:RadGridView.Columns Items="{Binding InitialColumns}"/>
</telerik:RadGridView>
since the "Items" property of Collection<T> doesn't have a public setter either.
As you may have guessed, I'm trying to add a collection of initial columns to the grid. My ultimate goal is to have a template selector that would fill the grid with some initial columns based on some conditions. The rest of the columns would then be added dynamically in code at runtime.
How could I do that? Thanks!