This question is locked. New answers and comments are not allowed.
Hello
I have seen the threads regarding blank combobox columns in a RadDataGrid.
In my xaml I set my combobox itemsource to a static resource:
<UserControl.Resources>
<solutionData:OrgDataSource x:Name="OrgDS" />
</UserControl.Resources>
<!-- more xaml -->
<telerik:GridViewComboBoxColumn Header="Agency"
DataMemberBinding="{Binding Agency}"
DisplayMemberPath="Name"
SelectedValueMemberPath="Name"
ItemsSource="{Binding Path=Organization, Source={StaticResource OrgDS}}" />
This appears to work most of the time, but occasionally does not.
I watched the traffic in Fiddler and noticed that most times the combobox DataSource was sent back prior to the grid's DataSource, which works. However, the combobox DataSource is populated asynchronously and sometimes will not finish loading before the grid's datasource is returned.
I am trying to get my head around the asynchronous programming; is there some technique that can force my combobox DataSource to load prior to the grid's DataSource?
Thanks!
I have seen the threads regarding blank combobox columns in a RadDataGrid.
In my xaml I set my combobox itemsource to a static resource:
<UserControl.Resources>
<solutionData:OrgDataSource x:Name="OrgDS" />
</UserControl.Resources>
<!-- more xaml -->
<telerik:GridViewComboBoxColumn Header="Agency"
DataMemberBinding="{Binding Agency}"
DisplayMemberPath="Name"
SelectedValueMemberPath="Name"
ItemsSource="{Binding Path=Organization, Source={StaticResource OrgDS}}" />
This appears to work most of the time, but occasionally does not.
I watched the traffic in Fiddler and noticed that most times the combobox DataSource was sent back prior to the grid's DataSource, which works. However, the combobox DataSource is populated asynchronously and sometimes will not finish loading before the grid's datasource is returned.
I am trying to get my head around the asynchronous programming; is there some technique that can force my combobox DataSource to load prior to the grid's DataSource?
Thanks!