This is a migrated thread and some comments may be shown as answers.

How to make RadComboBox selection change work when bound to a DomainDataSource?

3 Answers 142 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jonx
Top achievements
Rank 2
Jonx asked on 17 Aug 2010, 07:29 AM
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:
<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. 




3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 20 Aug 2010, 07:10 AM
Hi John,

Thank you for contacting us.

Could you please share with us which version of the controls you are using?
Please upgrade to the latest official release - Q2 2010 SP1 and contact us if you still experience the issue.
The RadComboBox doesn't need any other parameters to work, so if you have this problem again after the upgrade, could you please send us a sample project, which we can run here locally. In that way we will be able to assist you in the best manner.

Best wishes,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jonx
Top achievements
Rank 2
answered on 20 Aug 2010, 07:23 AM
Hello,
I'm using the latest version I think : 2010.2.812.1040...

My project is too big to be sent.
I'll find some time next week to build you a sample and send it.
Thanks,
John.
0
lee hom
Top achievements
Rank 1
answered on 20 Aug 2010, 02:42 PM
your code looks well....

this is my project, i use radcombobx too,but it's ok. http://sl.bitpx.com/TestRadCombobox.rar
Tags
ComboBox
Asked by
Jonx
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
Jonx
Top achievements
Rank 2
lee hom
Top achievements
Rank 1
Share this question
or