Telerik Forums
UI for WPF Forum
1 answer
231 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
122 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
117 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
102 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
104 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
152 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
82 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
229 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
122 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
7 answers
731 views
Hello,

I'm a beginner in WPF and I need your help to do something.

I want to add a system to close tabs for users. But I can't do it !
I found a video here : http://tv.telerik.com/wpf/prism/introduction-prism-with-radcontrols-wpf and I use the same thing for RadTabControl. So I'm using MS Composite Application Guidance and the RegionManager.

So I have this code id my main project :
<telerik:RadTabControl Name="tabControlClient" DockPanel.Dock="Right" cal:RegionManager.RegionName="MainRegion" Margin="10 0 10 10" ScrollMode="Viewport" DropDownDisplayMode="Visible" DisplayMemberPath="Content"
            <telerik:RadTabControl.ItemContainerStyle> 
               <Style TargetType="{x:Type telerik:RadTabItem}"
                    <Setter Property="Header" Value="{Binding DataContext.HeaderInfo}" /> 
                    <Setter Property="Height" Value="25" /> 
                    <Setter Property="IsSelected" Value="True" /> 
                </Style> 
            </telerik:RadTabControl.ItemContainerStyle> 
</telerik:RadTabControl> 

In my Module Project I copy the code on the video :
public String HeaderInfo 
     get { return "Labs Module"; } 

#region INotifyPropertyChanged Membres 
 
public event PropertyChangedEventHandler PropertyChanged; 
 
protected void OnPropertyChanged(String propertyName) 
     if (this.PropertyChanged != null
     { 
          this.PropertyChanged(thisnew PropertyChangedEventArgs(propertyName)); 
     } 

It work ! But now I want to add a close system. So I search the solution in this forum and I found this : How to Add Close Button to the Tab Headers
So I complete my code in my main project like this :
<telerik:RadTabControl Name="tabControlClient" DockPanel.Dock="Right" cal:RegionManager.RegionName="MainRegion" Margin="10 0 10 10" ScrollMode="Viewport" DropDownDisplayMode="Visible" DisplayMemberPath="Content"
            <telerik:RadTabControl.ItemContainerStyle> 
               <Style TargetType="{x:Type telerik:RadTabItem}"
 
                    <Setter Property="Header" Value="{Binding DataContext.HeaderInfo}" /> 
                    <Setter Property="HeaderTemplate"
                        <Setter.Value> 
                            <DataTemplate> 
                                <Grid> 
                                    <TextBlock Text="{Binding Header}"></TextBlock> 
                                    <Button Grid.Column="1" Margin="3 0 0 0" Content="x" Width="16" 
                                       Height="16" HorizontalAlignment="right"/> 
                                </Grid> 
                            </DataTemplate> 
                        </Setter.Value> 
                    </Setter> 
                    <Setter Property="Height" Value="25" /> 
                    <Setter Property="IsSelected" Value="True" /> 
                </Style> 
            </telerik:RadTabControl.ItemContainerStyle> 
        </telerik:RadTabControl> 

But only close button appear and not the header text.
So how I can use this two solution to have "Header text + close button" please ?

If you need more informations or others, tell me.

Thank you in advance.
Best Regards





Tina Stancheva
Telerik team
 answered on 19 May 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?