Approved
Last Updated: 03 Jan 2017 20:34 by ADMIN
ADMIN
Telerik Admin
Created on: 04 May 2010 16:17
Category: ComboBox
Type: Bug Report
3
ComboBox: SelectedItem binding is lost when the ItemsSource is bound to a DomainDataSource
When using similar code as below, RadComboBox does not select the specified item. If the DomainDataSource data was already loaded, the selection is successful.
<telerikInput:RadComboBox ItemsSource="{Binding ElementName=MineTypeDomainDataSource, Path=Data}"
  SelectedItem="{Binding Path=MineType, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}"> 
 <telerikInput:RadComboBox.ItemTemplate> 
  <DataTemplate> 
   <TextBlock Text="{Binding MineTypeName}" HorizontalAlignment="Left" /> 
  </DataTemplate> 
 </telerikInput:RadComboBox.ItemTemplate>  
</telerikInput:RadComboBox>  
<riaControls:DomainDataSource AutoLoad="True"
  x:Name="MineTypeDomainDataSource"
  QueryName="GetMineTypesQuery"
  LoadedData="MineTypeDomainDataSource_LoadedData"
  DomainContext="{StaticResource CitationDBSvc}" />
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments