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

Radcombo box problem?

1 Answer 69 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
sivakanth
Top achievements
Rank 1
sivakanth asked on 26 Jan 2011, 08:11 AM
Hello Telerik Team,
                              I have some problems using Radcombo box in our latest project.In my latest WPF project we are using telerik rad controls.
Here i have one combo box for adding country list.

In my project I am creating one folder name DAL.Inside DAL i am creating xml file(Named as CountryList.xml).
I am populating data from xml is completed.But editable,filtering everything was not working.

Mainly the selected item not display on combo box when iseditable=True;Pls give me correct solution for us.

i have attaced sample code here.
My xml code is below:
Name is CountryList.xml
 
<?xml version="1.0" encoding="utf-8" ?>
<Country>
<CountryName Name="Ashmore and Cartier Islands"/>
<CountryName Name="Australia"/>
<CountryName Name="Austria"/>
<CountryName Name="Bahamas"/>
<CountryName Name="Bahrain"/>
<CountryName Name="Bangladesh"/>
<CountryName Name="Barbados"/>
<CountryName Name="Bassas da India"/>
<CountryName Name="Belarus"/>
<CountryName Name="Belgium"/>
</Country>
This is my Wpf XAML Code:
 
<Window x:Class="WpfApplication8.MainWindow"
        Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Window.Resources>
             <XmlDataProvider x:Key="XmlData1" Source="DAL\CountryList.xml" XPath="Country"/>
 
    </Window.Resources>
    <Grid>
                <telerik:RadComboBox ItemsSource="{Binding Source={StaticResource XmlData1}, XPath=./CountryName}" DisplayMemberPath="@Name" IsEditable="True" IsFilteringEnabled="True" TextSearchMode="StartsWith" StaysOpenOnEdit="True" HorizontalAlignment="Left" Margin="164,100,0,0" Name="radComboBox2" VerticalAlignment="Top" Width="174">
             
        </telerik:RadComboBox>
    </Grid>
</Window>
Pls suggest me as soon as possible.

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 28 Jan 2011, 09:40 AM
Hello Sivakanth,

Thank you for contacting us.

Unfortunately, this is a limitation in the ComboBox and the filtering is not possible when the ComboBox is bound to XML file. We will consider including this feature in one of our future releases.
Sorry for the inconvenience caused.

Please let us know if you have any other questions.

Regards,
Konstantina
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
ComboBox
Asked by
sivakanth
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or