Radcombo box problem?

2 posts, 0 answers
  1. sivakanth
    sivakanth avatar
    50 posts
    Member since:
    Dec 2010

    Posted 26 Jan 2011 Link to this post

    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" ?>
    <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"/>
    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">
                 <XmlDataProvider x:Key="XmlData1" Source="DAL\CountryList.xml" XPath="Country"/>
                    <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">
    Pls suggest me as soon as possible.
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 28 Jan 2011 Link to this post

    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.

    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top