Databindings Incorrect:Redux

4 posts, 1 answers
  1. Darren
    Darren  avatar
    57 posts
    Member since:
    May 2009

    Posted 02 Aug 2009 Link to this post

    I'm having this problem again LOL!

    I'm using the RadComboBox.  Should be the latest legal version.  I'm populating the dropdown with a WCF Service.  The dropdown list is filling correctly.  When I click on the item I get it's type in the text portion of the box.

    Here's the top of the XAML:
        x:Class="AMRSilverlight.MedDlg" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"   
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
        mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="300" 
        Width="Auto" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
     

    Here's my Control XAML:
            <telerikInput:RadComboBox x:Name="ProblemList" ItemsSource="{Binding ProblemList}" telerik:TextSearch.TextPath="{Binding ICDText}" Grid.Row="8" Grid.Column="1" IsEditable="True" Height="20" Margin="0,0,10,0"
                <telerikInput:RadComboBox.ItemTemplate> 
                    <DataTemplate> 
                        <StackPanel Orientation="Horizontal"
                            <TextBlock Text="{Binding ICDText}"/> 
                        </StackPanel> 
                    </DataTemplate> 
                </telerikInput:RadComboBox.ItemTemplate> 
            </telerikInput:RadComboBox> 
     

    Here's my class:
            [DataContract] 
            public class ProblemList 
            { 
                [DataMember(Name="ICDText")] 
                public string ICDText { get; set; } 
            } 
     

    What did I do wrong this time?


  2. Darren
    Darren  avatar
    57 posts
    Member since:
    May 2009

    Posted 04 Aug 2009 Link to this post

    XP service pack 3
    Visual Studio 2008 sp1
    .Net Frameworks 3.5 sp1
    SQL Server 2005 Developer Edition 9.00.4035.00

    What else do I need to add to get a reply to this post?

  3. DevCraft banner
  4. Answer
    hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 04 Aug 2009 Link to this post

    Just change:
    telerik:TextSearch.TextPath="{Binding ICDText}"

    to:
    telerik:TextSearch.TextPath="ICDText"
  5. Darren
    Darren  avatar
    57 posts
    Member since:
    May 2009

    Posted 04 Aug 2009 Link to this post

    Doh!  Thanks Hwsoderland!
Back to Top