I am trying to follow the demo to bind my data and have 2 columns appear in the combobox.
I see:
<Grid.DataContext>
<local:AgencyViewModel />
</Grid.DataContext>
and
<telerikInput:RadComboBox x:Name="RadComboBox1" Width="350" SelectedIndex="0"
telerik:TextSearch.TextPath="Name" ItemsSource="{Binding Agency}"
ItemTemplate="{StaticResource ComboBoxCustomTemplate}"
HorizontalAlignment="Left" />
My question is where is "AgencyViewModel" coming from and for the ItemSource="{Binding Agency}", what does Agency represent, is this in the C# code itself?
If there was a better example of databinding with showing multiple columns in the combobox, that would help.
Thanks
I see:
<Grid.DataContext>
<local:AgencyViewModel />
</Grid.DataContext>
and
<telerikInput:RadComboBox x:Name="RadComboBox1" Width="350" SelectedIndex="0"
telerik:TextSearch.TextPath="Name" ItemsSource="{Binding Agency}"
ItemTemplate="{StaticResource ComboBoxCustomTemplate}"
HorizontalAlignment="Left" />
My question is where is "AgencyViewModel" coming from and for the ItemSource="{Binding Agency}", what does Agency represent, is this in the C# code itself?
If there was a better example of databinding with showing multiple columns in the combobox, that would help.
Thanks