Telerik Forums
UI for WPF Forum
0 answers
121 views

We're having an issue with the docking framework when interacting with unpinned areas within an application that has been integrated with some winforms controls. I've attached a sample application (changed extension from zip) that demonstrates the problem.

The bottom part contains a WinFormsHost which hosts a WpfUserControl. We've had to do it this way in order to incorporate legacy code.

When the bottom part is unpinned, it starts behaving unreliably as soon as you start interacting/clicking other parts of the app in winforms.  Also you will see that on hover, miminized winforms UI hides itself back, rather than “stay in preview” mode. This works fine for WPF content. To make it as close as possible to our actual customer application, I have created the Bottom, Right, Main areas in winforms. Just the left section is pure WPF, which is the only bit that works reliably.

Given our requirement to integrate with WinForms in this way, can we make this work correctly?

Note: we're currently using Telerik v2017.2.614.45

Thanks

Pete

Peter
Top achievements
Rank 1
Veteran
 asked on 29 Jan 2019
14 answers
656 views
The filtering on the RadComboBox works great, but I want to customize it so that when I use a combobox with Filter set to 'Contains', the filtering is done on multiple keywords instead of just one string.
For example, if I type "Apple Banana" into the combobox, I would like the filter to filter down to items containing "Apple" and "Banana" in their text, instead of items containing the string "Apple Banana". Is there a simple way to do this?  I appreciate any advice you can offer.
Dinko | Tech Support Engineer
Telerik team
 answered on 28 Jan 2019
1 answer
501 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
159 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.6K+ 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
133 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
329 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
197 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
483 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
240 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
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?