Telerik Forums
UI for WPF Forum
3 answers
72 views
Fix yo' code. :P
Pavel
Telerik team
 answered on 20 May 2010
1 answer
222 views
Hello,

I have an MVVM application.
In this application I use RadMap control with search engine via BingSearchProvider class.
If I binding result of work BingSearchProvider as ObservableCollection<Location> all works perfectly,
<telerik:InformationLayer x:Name="informationLayer"  
    ItemsSource="{Binding Path=LocationData.SearchResult}"
 <telerik:InformationLayer.ItemTemplate> 
.... 
 
 
public ObservableCollection<Location> SearchResult { getprivate 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); 

but if I try to wrap result in MyMapItem and try binding ObservableCollection <MyMapItem>
the map refuses to display search result positions on InformationLayer.
<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 { getprivate 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); 

How i can solve this problem? How i can use custom class for display position on Radmap control? I don't want use buffer object list =(

Here is located the simple project which demonstrate a problem 

Vladimir Milev
Telerik team
 answered on 20 May 2010
1 answer
111 views
Hello all.

I'm working on stacked bar and i have one question about negative values.
Is it possible to show them on chart? Is it supported by <telerik: RadChart> control?
I have 5 vertical bars with 5 segments. See attached image, please.
You will be able to see that grey part from first bar is missing.
that one has negative value.
Is there any way / property which says to graph that it must be moved a little bit to the top and to show segnemt with negative value?
Nenad Djukic
Top achievements
Rank 1
 answered on 20 May 2010
1 answer
111 views
I cannot seem to find any documentation at all that shows how to use a WPF RadSplitButton. How do I add drop down items to the list?
Dimitrina
Telerik team
 answered on 20 May 2010
1 answer
98 views
On the Loaded event of the control am adding my custom labels by assigning custom values to the  Y-Axis Tickpoint.Label property
when i scroll the scroll bar in the y-axis, all the custom tickpoint label disappears and am viewing my default numeric values in ticklabel????
how to slove this,
Vladimir Milev
Telerik team
 answered on 20 May 2010
2 answers
95 views
Hello all.

I have a problem with chart data within stacked bar chart.
Some data is not visible.
ItemSource of chart is List<decimal[5]>.
Image is attached.
Each column contains segments woth values from 30-70 from bottom to the top.
Bottom segments with value 30 are not visible at all.
I put AxisY.AutoRange to false and AxisY.MaxValue to 300 (sum of all segments from one solumn is 250).

Could you please help me about this?
Thanx in advance.
    Nenad
Nenad Djukic
Top achievements
Rank 1
 answered on 20 May 2010
4 answers
145 views
Hi ... I have a child grid for which I would like to show the IsExpandable button only if there is data in the objects child collection. I have tried the following XAML
        <Style TargetType="{x:Type Controls:GridView.GridViewRow}">
            <Setter Property="IsExpandable" Value="{Binding DeviceBehaviours.Count, Converter={StaticResource IntegerToBooleanConverter}, Mode=OneWay}" />
        </Style>
The converter returns a boolean if the child collection has a count. This collection is asynchronous and returns a only result after the RowLoaded event has already run. 

Weirdly this same Xaml works for the Expanded property.

Hope you can help
John .


John
Top achievements
Rank 1
 answered on 20 May 2010
3 answers
77 views

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.

Valeri Hristov
Telerik team
 answered on 20 May 2010
3 answers
220 views
Hi< Which event do I subscribe to to know when a row has been deleted?

thanks,
Jas
Maya
Telerik team
 answered on 19 May 2010
3 answers
116 views
Hi.

I would like to have more than 1 row as a heading to my grid.
I would like to have a heading that is applicable to a couple of columns, with each underlying column still having its own heading.

It should be simular to the formatting that you can do in excel, when you merge a couple of columns into 1 column, and still have columns underneath it, example
------------------------------------
|            Data Group             |
------------------------------------
|Column1|Column2|Column3|
------------------------------------

I have a project where I need to add columns to my radgrid in code, so please help with a WPF C# example.

Thanks.
Yavor Georgiev
Telerik team
 answered on 19 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?