Telerik Forums
UI for WPF Forum
5 answers
304 views
I have a GridViewComboBoxColumn that displays a dollar amount. If I don't try to format it, it works and displays "100000.00" for underlying data of 100000.

However, I want this to display as "$100,000.00". Nothing I've tried has worked. This shouldn't be difficult...

<telerik:GridViewComboBoxColumn Width="Auto"
                                DataMemberBinding="{Binding ProjectPhaseLoanId}"
                                DisplayMemberPath="ApplicationAmount"
                                Header="Loan/Amount"
                                ItemsSource="{Binding ProjectPhase.Loans}"
                                SelectedValueMemberPath="Id" />
Yoan
Telerik team
 answered on 08 Jun 2016
1 answer
161 views

Hello,

 

I'm having trouble trying to add a heat map (calculated with geoloc points) over the telerik RadMap. First, correct me if I'm wrong but there is no option to do that simply by using a component of your library.

So my idea was to use the InformationLayer to add an image on which I would have calculated the heat map (ex: http://dylanvester.com/2015/10/creating-heat-maps-with-net-20-c-sharp/), unfortunately it does not seems to work and even if it did work, I'm not sure the renderring would work well with the map interraction.

Can you please provide me solutions on how to add a heatmap simply by using geoloc points?

 

Thanks a lot for your help,

Regard,

A french user ;)

 

Martin Ivanov
Telerik team
 answered on 08 Jun 2016
1 answer
247 views

Hi,

I have been searching for something like Shared Size Group from Grid but in RadGridView or RadTreeListView.

Is there something similar in RadGridView or RadTreeListView? I just want to share some columns width from 2 RadGridView.

 

Thanks!

Dilyan Traykov
Telerik team
 answered on 08 Jun 2016
2 answers
323 views

Hi,

could you please be so kind and show me in your grid style (I'm using Windows8 theme) name of style/template where I can remove borders of indent cell on detail row (marked with orange). I want also remove background and border of indent cell on second and third grouping row (marked with dark red) when I have more grouping columns. I was already overide style of first grouping row (in my case MainClassification) but when I have second and third grouping I have indent cell which I want override too. I have Collapsed  "RowIndicatorVisibility" and "RowDetailsVisibilityMode" properties just for your information. My telerik version is 2016.Q2. Thank you very much for your help.

Pero
Top achievements
Rank 1
 answered on 08 Jun 2016
2 answers
84 views

My user lost their data and I got the following error message:

Word encountered an error processing the XML file tmp714D.docx
Unexpected end of input.
Location:  Part: /word/document.xml, Line: 1, Column: 4287
   at Microsoft.Office.Interop.Word.Range.InsertFile(String FileName, Object& Range, Object& ConfirmConversions, Object& Link, Object& Attachment)

Any thoughts? I have the feeling the data is easily corrupted when the user does copy/paste.

Mihail
Telerik team
 answered on 08 Jun 2016
0 answers
109 views

Hello,

Struggling to get the selected date from Navigation header when we click on that.

And in the same way when i click Previous(Back) and Tomorrow(front) Arrow key, need to get the details, please help me to get it resolve.

Attached an screenshot for your reference.

Karthik
Top achievements
Rank 1
 asked on 08 Jun 2016
2 answers
120 views

How can I get the parent Diagram of a RadDiagramShape in code?

There is a "Diagram" property but it's protected and can't be accessed.

Greg
Top achievements
Rank 1
 answered on 07 Jun 2016
4 answers
449 views

Hello,

I'm using a RadDiagram in my application. The GraphSource is backed by a ViewModel.

I need to draw shapes on the diagram, and have them added to the GraphSource. How can I achieve that?

 

I created a small test project, below. It has a window and a View Model.

At present, when I draw a path, new MyBaseNode object is created, but none of its properties have a value.

 

01.<Window x:Class="MainWindow"
04.        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
05.        xmlns:primitives="clr-namespace:Telerik.Windows.Controls.Diagrams.Primitives;assembly=Telerik.Windows.Controls.Diagrams"
08.        xmlns:my="clr-namespace:MvvmShapes"
09.        mc:Ignorable="d"
10.        Title="MainWindow"
11.        d:DesignWidth="800"
12.        d:DesignHeight="300"
13.        Height="350"
14.        Width="525">
15.    <Window.DataContext>
16.        <my:MyViewModel />
17.    </Window.DataContext>
18.    <Grid>
19.        <telerik:RadDiagram GraphSource="{Binding Graph, Mode=OneTime}"
20.                            ActiveTool="{Binding DiagramTool}">
21.            <telerik:RadDiagram.ShapeStyle>
22.                <Style TargetType="telerik:RadDiagramShape">
23.                    <!-- ce style relie les propriétés du ViewModel aux propriétés des formes dans le diagramme -->
24.                    <!-- position -->
25.                    <Setter Property="Position"
26.                            Value="{Binding Position, Mode=TwoWay}" />
27.                    <!-- rotation -->
28.                    <Setter Property="RotationAngle"
29.                            Value="{Binding RotationAngle, Mode=TwoWay}" />
30.                    <!-- width and height -->
31.                    <Setter Property="Width"
32.                            Value="{Binding Width, Mode=TwoWay}" />
33.                    <Setter Property="Height"
34.                            Value="{Binding Height, Mode=TwoWay}" />
35.                    <Setter Property="Content"
36.                            Value="{Binding Content, Mode=OneTime}" />
37.                    <Setter Property="Template">
38.                        <Setter.Value>
39.                            <ControlTemplate>
40.                                <TextBlock Text="{Binding Content}" />
41.                            </ControlTemplate>
42.                        </Setter.Value>
43.                    </Setter>
44.                </Style>
45.            </telerik:RadDiagram.ShapeStyle>
46.        </telerik:RadDiagram>
47. 
48.        <StackPanel HorizontalAlignment="Left">
49.            <Button Command="{Binding CommandPointer, Mode=OneTime}"
50.                    Content="Pointer" />
51.            <Button Command="{Binding CommandLine, Mode=OneTime}"
52.                    Content="Line" />
53.        </StackPanel>
54.    </Grid>
55.</Window>

 

001.Imports Telerik.Windows.Diagrams
002.Imports Telerik.Windows.Controls.Diagrams.Extensions.ViewModels
003. 
004. 
005.Public Class MyViewModel
006.    Inherits Telerik.Windows.Controls.ViewModelBase
007. 
008.    Public Property Graph As New MyGraphSource()
009. 
010.    Private _diagram_tool As Telerik.Windows.Diagrams.Core.MouseTool
011.    Public Property DiagramTool As Telerik.Windows.Diagrams.Core.MouseTool
012.        Get
013.            Return _diagram_tool
014.        End Get
015.        Set(value As Telerik.Windows.Diagrams.Core.MouseTool)
016.            _diagram_tool = value
017.            OnPropertyChanged("DiagramTool")
018.        End Set
019.    End Property
020. 
021.    Public ReadOnly Property CommandPointer As ICommand
022.        Get
023.            Return New CommandImpl(Sub() DiagramTool = Core.MouseTool.PointerTool)
024.        End Get
025.    End Property
026. 
027.    Public ReadOnly Property CommandLine As ICommand
028.        Get
029.            Return New CommandImpl(Sub() DiagramTool = Core.MouseTool.PathTool)
030.        End Get
031.    End Property
032.End Class
033. 
034.Public Class MyGraphSource
035.    Inherits ObservableGraphSourceBase(Of MyBaseNode, MyLink)
036. 
037.    Public Sub New()
038.        Dim node1 As New MyBaseNode() With {.Content = "node 1", .Position = New Point(100, 100), .Width = 60, .Height = 30}
039.        Dim node2 As New MyBaseNode() With {.Content = "node 2", .Position = New Point(400, 100), .Width = 60, .Height = 30}
040.        Dim node3 As New MyBaseNode() With {.Content = "node 3", .Position = New Point(100, 200), .Width = 60, .Height = 30}
041.        Dim node4 As New MyBaseNode() With {.Content = "node 4", .Position = New Point(400, 400), .Width = 60, .Height = 30}
042. 
043.        Dim link1 As New MyLink(node1, node4) With {.Content = "A"}
044.        Dim link2 As New MyLink(node1, node3) With {.Content = "B"}
045.        Dim link3 As New MyLink(node1, node2) With {.Content = "C"}
046.        Dim link4 As New MyLink(node2, node3) With {.Content = "D"}
047. 
048.        AddNode(node1)
049.        AddNode(node2)
050.        AddNode(node3)
051.        AddNode(node4)
052. 
053.        AddLink(link1)
054.        AddLink(link2)
055.        AddLink(link3)
056.        AddLink(link4)
057.    End Sub
058. 
059. 
060. 
061.End Class
062. 
063.Public Class CommandImpl
064.    Implements ICommand
065. 
066.    Private _command_action As Action
067.    Public Sub New(p_action As Action)
068.        _command_action = p_action
069.    End Sub
070. 
071.    Public Function CanExecute(parameter As Object) As Boolean Implements ICommand.CanExecute
072.        Return True
073.    End Function
074. 
075.    Public Event CanExecuteChanged(sender As Object, e As EventArgs) Implements ICommand.CanExecuteChanged
076. 
077.    Public Sub Execute(parameter As Object) Implements ICommand.Execute
078.        _command_action()
079.    End Sub
080.End Class
081. 
082.Public Class MyBaseNode
083.    Inherits NodeViewModelBase
084. 
085.    Public Overrides Function ToString() As String
086.        Return If(Content IsNot Nothing, Content.ToString, "")
087.    End Function
088.End Class
089. 
090. 
091.Public Class MyLink
092.    Inherits LinkViewModelBase(Of MyBaseNode)
093. 
094.    Public Sub New()
095.        MyBase.New()
096.    End Sub
097. 
098.    Public Sub New(source As MyBaseNode, target As MyBaseNode)
099.        MyBase.New(source, target)
100.    End Sub
101. 
102.    Public Overrides Function ToString() As String
103.        Return If(Content IsNot Nothing, Content.ToString, "")
104.    End Function
105.End Class

 

 

Petar Mladenov
Telerik team
 answered on 07 Jun 2016
3 answers
189 views

I'm attempting to implement dragging and dropping between controls on two different tiles. It seems that I need to override the default tile reordering behavior, but only when the drag event source is not a Tile (such as when dragging a control inside a tile's contents to another tile). Specifically, I'm trying to drag from a RadGridView inside a Tile to another Tile.

Is this something that is feasible? 

 

I appreciate any advice,

Thanks

 

 

Yoan
Telerik team
 answered on 07 Jun 2016
2 answers
228 views

Hi,

Is it possible to use the timeline layout for 7 days but setting the first date shown to be the first day of the week.  If I switch from Day view to Timeline view, the first day shown in the Timeline is always the day you were looking at in Day View whereas I would like it to be the first day of that week - Monday.

I would use Week View but when I put it into Horizontal orientation to try and emulate the Timeline layout, the date part of the TimeRuler sits on the Y axis (along with each Resource) and this stretches out each Resource bigger than I would like - ideally I want the dates to stay with the times on the TimeRuler.

 

Thanks.

 

Kieron
Top achievements
Rank 1
 answered on 07 Jun 2016
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?