I have a DataViewGrid bound to a raddomaindatasource
I have a ComboBoxColumn in the dataviewgrid, the combobox is bound to a different raddomaindatasource
When i run the code, the combobox column is empty, but when i click the combobox column on any row , all the values for the comboboxcolumn are filled in on all rows.
Here is the XAML:
Did i miss something?
I have a ComboBoxColumn in the dataviewgrid, the combobox is bound to a different raddomaindatasource
When i run the code, the combobox column is empty, but when i click the combobox column on any row , all the values for the comboboxcolumn are filled in on all rows.
Here is the XAML:
<
Grid
x:Name
=
"LayoutRoot"
>
<
telerik:RadDomainDataSource
AutoLoad
=
"True"
Height
=
"0"
Width
=
"0"
x:Name
=
"organizationDomainDataSource"
QueryName
=
"GetOrganizationsQuery"
>
<
telerik:RadDomainDataSource.DomainContext
>
<
my1:ExqiOfficeDomainContext
/>
</
telerik:RadDomainDataSource.DomainContext
>
</
telerik:RadDomainDataSource
>
<
telerik:RadDomainDataSource
AutoLoad
=
"True"
Height
=
"0"
Width
=
"0"
x:Name
=
"countriesDomainDataSource"
QueryName
=
"GetCountriesQuery"
>
<
telerik:RadDomainDataSource.DomainContext
>
<
my1:ExqiOfficeDomainContext
/>
</
telerik:RadDomainDataSource.DomainContext
>
</
telerik:RadDomainDataSource
>
<
telerik:RadBusyIndicator
IsBusy
=
"{Binding IsBusy, ElementName=OrganizationsGrid}"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"300"
></
RowDefinition
>
<!--<RowDefinition Height="50"></RowDefinition> -->
<
RowDefinition
Height
=
"400"
></
RowDefinition
>
</
Grid.RowDefinitions
>
<
telerik:RadGridView
x:Name
=
"OrganizationsGrid"
ItemsSource
=
"{Binding ElementName=organizationDomainDataSource, Path=DataView}"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
IsBusy
=
"{Binding IsBusy, ElementName=organizationDomainDataSource}"
Grid.Row
=
"0"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Name"
UniqueName
=
"Name"
Width
=
"200"
></
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"Address"
UniqueName
=
"Address"
Width
=
"150"
></
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"Zip Code"
UniqueName
=
"Zipcode"
></
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"Place"
UniqueName
=
"Place"
Width
=
"150"
></
telerik:GridViewDataColumn
>
<
telerik:GridViewComboBoxColumn
Header
=
"Country"
UniqueName
=
"CountryId"
ItemsSource
=
"{Binding ElementName=countriesDomainDataSource, Path=DataView}"
SelectedValueMemberPath
=
"CountryId"
DisplayMemberPath
=
"Name"
>
</
telerik:GridViewComboBoxColumn
>
<
telerik:GridViewDataColumn
Header
=
"VAT"
UniqueName
=
"VAT"
Width
=
"150"
></
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"Created On"
UniqueName
=
"DateCreated"
></
telerik:GridViewDataColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
telerik:RadBusyIndicator
>
</
Grid
>
Did i miss something?