Hello,
I have a gridview with a content that should be filtered by the selected item of a combobox.
When I change the selected item in the combo, the content of my grid is updated.
This is working when I use a combobox but not when I use a radcombobox.
Both comboboxes are declared the same way.
Maybe I'm missing something...
The working combobox:
The non working radcombobox:
Here is the domaindatasource:
The linked domaindatasource with its parameter:
And finally my grid:
Maybe the rad combo need more parameters to do the same work?
Thank you for your help.
I have a gridview with a content that should be filtered by the selected item of a combobox.
When I change the selected item in the combo, the content of my grid is updated.
This is working when I use a combobox but not when I use a radcombobox.
Both comboboxes are declared the same way.
Maybe I'm missing something...
The working combobox:
<
ComboBox
DisplayMemberPath
=
"ChannelName"
ItemsSource
=
"{Binding ElementName=channelDetailDomainDataSource, Path=Data}"
>
</
ComboBox
>
The non working radcombobox:
<
telerik:RadComboBox
DisplayMemberPath
=
"ChannelName"
ItemsSource
=
"{Binding ElementName=channelDetailDomainDataSource, Path=Data}"
>
</
telerik:RadComboBox
>
Here is the domaindatasource:
<
riaControls:DomainDataSource
AutoLoad
=
"True"
d:DesignData
=
"{d:DesignInstance my:ChannelDetail, CreateList=true}"
Height
=
"0"
LoadedData
=
"channelDetailDomainDataSource_LoadedData"
Name
=
"channelDetailDomainDataSource"
QueryName
=
"GetChannelDetailsQuery"
Width
=
"0"
>
<
riaControls:DomainDataSource.DomainContext
>
<
my:AkDomainContext
/>
</
riaControls:DomainDataSource.DomainContext
>
</
riaControls:DomainDataSource
>
The linked domaindatasource with its parameter:
<
riaControls:DomainDataSource
AutoLoad
=
"True"
d:DesignData
=
"{d:DesignInstance my:GridList, CreateList=true}"
Height
=
"0"
Name
=
"gridListDomainDataSource"
QueryName
=
"GetGridProgramListsQuery"
Width
=
"0"
LoadedData
=
"gridListDomainDataSource_LoadedData"
>
<
riaControls:DomainDataSource.QueryParameters
>
<
riaControls:Parameter
ParameterName
=
"channelID"
Value
=
"{Binding ElementName=channelDetailDomainDataSource, Path=Data.CurrentItem.ChannelID}"
/>
</
riaControls:DomainDataSource.QueryParameters
>
<
riaControls:DomainDataSource.DomainContext
>
<
my:AkDomainContext
/>
</
riaControls:DomainDataSource.DomainContext
>
</
riaControls:DomainDataSource
>
And finally my grid:
<
telerik:RadGridView
CanUserFreezeColumns
=
"False"
FrozenColumnCount
=
"0"
ItemsSource
=
"{Binding ElementName=gridListDomainDataSource, Path=Data}"
AutoGenerateColumns
=
"False"
Name
=
"grdGridLive"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Start}"
Header
=
"Début"
Width
=
"2*"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Title}"
Header
=
"Nom du Programme"
Width
=
"2*"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding GenreName}"
Header
=
"Genre"
Width
=
"*"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=Duration, Converter={StaticResource millisecondsTimeConverter}}"
Header
=
"Durée"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
Maybe the rad combo need more parameters to do the same work?
Thank you for your help.