I am using the following listbox to manage visibility and order of the columns in my grid view. It works great for visibility (of course). If I drag a column in the listbox it reorders the grid columns fine. But if I reorder the grid columns in the grid it does not update the listbox. I am willing to disable column ordering in the grid view (and only reorder columns using the listbox) if I have to but would prefer not. I assume I can disable column reorder in the gridview anyway, still looking into it...
Is there a trick I am missing to get the listbox to reorder when I update the column order from the gridview?
<telerik:RadListBox x:Name="ColumnSelector" Margin="3" ItemContainerStyle="{StaticResource DraggableListBoxItem}"
ItemsSource="{Binding Columns,ElementName=GOOSEGrid}">
<telerik:RadListBox.DragDropBehavior>
<telerik:ListBoxDragDropBehavior />
</telerik:RadListBox.DragDropBehavior>
<telerik:RadListBox.DragVisualProvider>
<telerik:ScreenshotDragVisualProvider />
</telerik:RadListBox.DragVisualProvider>
<telerik:RadListBox.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Header}" IsChecked="{Binding IsVisible}"/>
</DataTemplate>
</telerik:RadListBox.ItemTemplate>
</telerik:RadListBox>