Hi there,
I have two tables with data (NACION and DIVISA), 2 Domain Data Sources and I'm using VS2010 RC + RIA + Silverlight Q1 2010
This is my code:
In this GridView the ComboBoxes are always empty.
What's wrong?
Thanks!
I have two tables with data (NACION and DIVISA), 2 Domain Data Sources and I'm using VS2010 RC + RIA + Silverlight Q1 2010
This is my code:
<riaControls:DomainDataSource AutoLoad="True" |
d:DesignData="{d:DesignInstance my:NACION, CreateList=true}" |
Name="NACIONDomainDataSource" |
QueryName="GetNACIONsQuery"> |
<riaControls:DomainDataSource.DomainContext> |
<my:NationContext /> |
</riaControls:DomainDataSource.DomainContext> |
</riaControls:DomainDataSource> |
<riaControls:DomainDataSource AutoLoad="True" |
d:DesignData="{d:DesignInstance my:DIVISA, CreateList=true}" |
Name="DIVISADomainDataSource" |
QueryName="GetDIVISAsQuery"> |
<riaControls:DomainDataSource.DomainContext> |
<my:CurrencyContext /> |
</riaControls:DomainDataSource.DomainContext> |
</riaControls:DomainDataSource> |
<telerikGridView:RadGridView |
ItemsSource="{Binding ElementName=NACIONDomainDataSource, Path=Data}" |
Name="MAINRadGridView" |
AutoGenerateColumns="False"> |
<telerikGridView:RadGridView.Columns> |
<telerikGridView:GridViewDataColumn Header="NATION CODE" DataMemberBinding="{Binding CODPAIS, Mode=TwoWay}"/> |
<telerikGridView:GridViewDataColumn Header="DESCRIPTION" DataMemberBinding="{Binding DENOMI, Mode=TwoWay}"/> |
<telerikGridView:GridViewComboBoxColumn Header="CURRENCY CODE" DataMemberBinding="{Binding CODDIV, Mode=TwoWay}" UniqueName="Currency" SelectedValueMemberPath="Id" ItemsSource="{Binding ElementName=DIVISADomainDataSource, Path=Data}" DisplayMemberPath="Name" /> |
</telerikGridView:RadGridView.Columns> |
</telerikGridView:RadGridView> |
In this GridView the ComboBoxes are always empty.
What's wrong?
Thanks!