or

| <telerik:InformationLayer x:Name="informationLayer" |
| ItemsSource="{Binding Path=LocationData.SearchResult}"> |
| <telerik:InformationLayer.ItemTemplate> |
| .... |
| public ObservableCollection<Location> SearchResult { get; private set; } |
| private void geoHelper_SearchCompleted(object sender, LocSearchCompletedEventArgs e) |
| { |
| SearchResult.Clear(); |
| var searchResult = e.Locations as ObservableCollection<MyMapItem>; |
| foreach(MyMapItem loc in searchResult) |
| SearchResult.Add(loc.Location); |
| } |
| <telerik:InformationLayer x:Name="informationLayer" |
| ItemsSource="{Binding Path=LocationData.SearchResult.Location}"> |
| <telerik:InformationLayer.ItemTemplate> |
| .... |
| public class MyMapItem |
| { |
| public Location Location |
| { |
| get; |
| set; |
| } |
| public string Title |
| { |
| get; |
| set; |
| } |
| public string Description |
| { |
| get; |
| set; |
| } |
| } |
| public ObservableCollection<MyMapItem> SearchResult { get; private set; } |
| private void geoHelper_SearchCompleted(object sender, LocSearchCompletedEventArgs e) |
| { |
| SearchResult.Clear(); |
| var searchResult = e.Locations as ObservableCollection<MyMapItem>; |
| foreach(MyMapItem loc in searchResult) |
| SearchResult.Add(loc); |
| } |
i have got a combobox which has set the RadComboBox.ItemTemplate to a combined string
<telerik:RadComboBox x:Name ="blah" HorizontalAlignment="Left" Margin="0,26.04,0,0" VerticalAlignment="Top" Width="167.54" d:LayoutOverrides="HorizontalAlignment" ItemsSource="{Binding Source={StaticResource respondentViewSource}}" >
so how can i have a search text area that actually searches the "displaymember" or "itemtemplate"
i think it's to do with telerik:TextSearch.TextPath, but i don't what value is expected in that attribute.