Telerik Forums
UI for WPF Forum
1 answer
528 views

Hi

I have a RadPieChart with a Doughnut series:

   <telerik:RadPieChart x:Name="PieChart">
            <telerik:DoughnutSeries x:Name="PieSeries1" ValueBinding="Value" ItemsSource="{Binding Items}" InnerRadiusFactor="0.4" RadiusFactor="0.8" DefaultSliceStyle="{StaticResource PieSliceStyle}">
                <telerik:PieSeries.LabelDefinitions>
                    <telerik:ChartSeriesLabelDefinition Template="{StaticResource LabelTemplate1}"/>
                </telerik:PieSeries.LabelDefinitions>
            </telerik:DoughnutSeries>
        </telerik:RadPieChart>

This is the label template:

  <DataTemplate x:Key="LabelTemplate1">
            <TextBlock Foreground="#FFB6B6B6"
                       Text="{Binding Path=DataItem.Label}"
                       Visibility="{Binding Path=DataItem.Visibility}"
                       FontSize="18" FontFamily="Segoe UI" TextAlignment="Center" />
        </DataTemplate>

The data objects I bind to in the template implements “INotifyPropertyChanged” and the properties raise the “PropertyChanged” event when changed. This works fine elsewhere.

The labels gets their initial label text/visibility fine. But if I update the values - it is not reflected to the labels.

I bind to the data objects in the “DefaultSliceStyle” too and it works fine when updating.

Any ideas why – and is there an alternative solution?

/Flemming

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Jan 2019
4 answers
176 views

Hello,

I have RadTimeBar

            <telerik:RadTimeBar x:Name="radTimeBar"
                            PeriodStart="{Binding StartDate}" 
                            PeriodEnd="{Binding EndDate}" 
                            VisiblePeriodStart="{Binding VisibleStartDate}" 
                            VisiblePeriodEnd="{Binding VisibleEndDate}"                            
                            SelectionStart="{Binding CurrentTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                            SelectionChanged="radTimeBar_SelectionChanged"                            
                            ScrollMode="ScrollAndZoom">
                <telerik:RadTimeBar.Intervals>
                    <telerik:MinuteInterval />
                </telerik:RadTimeBar.Intervals>
            </telerik:RadTimeBar>

When I slide the slider thumb to the end the aplication is broken

I don't know how to catch the exception before the crashed

I attached a print screen of the exception

Thanks

David
Top achievements
Rank 1
 answered on 27 Jan 2019
2 answers
1.7K+ views

I'm trying to have a checkbox as a column that fires an event when it is checked or unchecked. The current code does that, but the problem I am facing is that when the grid is loading, it is firing an event for each item in the grid before it displays. Is there a way around this?

                            <telerik:GridViewDataColumn Header="" DataMemberBinding="{Binding IsCheckedInModel, Mode=TwoWay}" >
                                <telerik:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <CheckBox IsChecked="{Binding IsCheckedInModel, Mode=TwoWay}" Checked="VarImportance_Checked" Unchecked="VarImportance_Checked"/>
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellTemplate>
                            </telerik:GridViewDataColumn>

Thanks,

Nelson

James DAmour
Top achievements
Rank 1
 answered on 25 Jan 2019
4 answers
148 views

This may be more of a WPF question. I updated our app to support multiple maps on the screen. I want each map to share the items used for the VisualizationLayer. This seems to work for custom items, but not for MapShapeData items. I tried using a different collection for each map to hold the items, but it didn't help. Details:

Add PolygonData objects. They show up fine but when zooming, they don't scale. If I change to use two maps, everything works perfectly. If I switch back to one map, the objects again stop scaling when zooming.

If I replace the PolygonData with a custom object that holds a LocationCollection and apply a MapPolygonView to the object, everything works perfectly, even with just one map.

What is it about PolygonData that causes this not to work?

Using PolygonData with a VirtualizationSource also works.

Vladimir Stoyanov
Telerik team
 answered on 25 Jan 2019
5 answers
353 views

Hello!

In our app we are using dynamicly generated shapes on theRadMap via map shapes. 

All shapes areimplimented as Datatemplates on map Information layers. And it all works ok, until we come to MapEllipse. 

An attempt tp bind MapEllipse location to the Location property of the model, Exception is thrown, beacuse Locatuion is mot a Dependency Property.

Is there any way to solve the prolem, excep implemening new calss, based on MapEllipse with custom DependencyProperty? 

 

Thank you

Vladimir Stoyanov
Telerik team
 answered on 25 Jan 2019
1 answer
214 views

Hi

I have a pie/doughnut chart as shown on the attached image.

How do I position the labels inside the doughnut?

Flemming

Martin Ivanov
Telerik team
 answered on 25 Jan 2019
4 answers
506 views

Hello!

I am trying to display a PDF file in the RadPdfViewer that is shown as having a white background in other PDF Viewer programs (SumatraPDF, Adobe Acrobat Reader, ...), but in the RadPdfViewer it shows a red background. Is this a bug or is my file broken somehow? Or am I missing a setting that changes this behavior?

Cheers

Nico
Top achievements
Rank 1
 answered on 24 Jan 2019
1 answer
262 views

Hi

I want to implement the item zoom in and out in the listbox.Similar to the zoom of the Diagram.

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Jan 2019
3 answers
274 views

I have a custom class that I'm adding to a VisualizationLayer. I'm using the following template to display it:

<DataTemplate x:Key="PolygonTemplate">
    <telerik:MapPolygonView Points="{Binding Points}" ShapeFill="{Binding ShapeFill}" />
</DataTemplate>

 

Works great. But I don't know how to get the ZIndex working. I tried adding my own ZIndex (that calls PropertyChanged), inheriting from ExtendedDataProvider, putting Canvas.ZIndex in the template but the z-order of the item never changes. If I use a normal PolygonData with the default template, the z-order updates.

Martin Ivanov
Telerik team
 answered on 24 Jan 2019
5 answers
104 views

Hello,

when I selected the RadPane on the right,the pinbutton has missed.When I selected another control ,the pinbutton display.

How to change the pinbutton to solve the problem?

Regards,

Guo

guo
Top achievements
Rank 1
 answered on 24 Jan 2019
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?