Telerik Forums
UI for WPF Forum
0 answers
101 views

Our application uses Telerik.Windows.Controls.RadDiagram to arrange RadDiagramItem instances on the screen.  Our view model uses a higher resolution than 96x96.  When I set RadDiagramItem.Width, for example, to 94.464, I can see in the debugger the framework accepts that value.  However, when I execute the undo operation, I see RadDiagramItem.OnSizeChanged(Size newSize, Size oldSize) called, with oldSize = {94, ... }.  This results in a rounding error in our view model.

Is there any way to put RadDiagram into a fractional pixel mode?

Burl
Top achievements
Rank 1
 asked on 26 Jan 2023
1 answer
157 views
Hello Teleriks. We are currently working on an application that has Telerik chart with a horizontal DateTimeContinuousAxis that is updating every second using ChartPanAndZoomBehavior so we can pan through timeline. What we are trying to accomplish is to have a few buttons one that show the latest 4hrs of chart data, another one that can show the entire chart data, and one other that will move the pan up the front so you can see the latest chart update; on the first 2 ones we want to remove the ChartPanAndZoomBehavior programmatically, but when we tried to set the ActualVisibleRange of the chart,  were not able to find a way. Can you point us in the right direction. Thanks in advance.
Dilyan Traykov
Telerik team
 answered on 26 Jan 2023
1 answer
579 views

Dear Team,

I wanted to try the Radbarcodereader in WPF. I opened a new project with .Framework 4.7 

and i just pulled out a Radbarcodereader to an empty WPF window.

Simply started the app, and browsed some random images with barcodes, but every time i push the "decode image" i get IndexOutOfRangeException from the control.

All propertises of the control are on default, what do i have to set up to make it work?

I have tried without control, only by code:

    Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
        Dim imageSource = img_Camera.Source
        Dim decoder As New BarcodeDecoder()
        decoder.ImageSource = imageSource
        AddHandler decoder.DecodingComplete, AddressOf OnDecodingComplete
        decoder.StartDecoding()
    End Sub
    Private Sub OnDecodingComplete(ByVal sender As Object, ByVal e As DecodingEventArgs)
        Dim decodeResult As String
        If String.IsNullOrEmpty(e.ErrorMessage) Then
            decodeResult = String.Format("Code Type: {0}" & ControlChars.Lf & "Result: {1}", e.CodeType, e.Result)
        Else
            decodeResult = e.ErrorMessage
        End If
        txt_RESULT.Text = decodeResult
    End Sub

 

At this line:     decoder.StartDecoding()

i also  get the IndexOutOfRangeException 

 

Please help :)

thanks

Peter B.

Dilyan Traykov
Telerik team
 answered on 26 Jan 2023
0 answers
82 views
Never mind. I figured out the issue 
Sudeshna
Top achievements
Rank 1
 updated question on 26 Jan 2023
1 answer
125 views

I have one parent type “Aa” inherit from “Telerik.Windows.Controls.ScheduleView.Appointment”, with two inherited types “Bb” and “Cc”. while each one has different properties implementation.

 

I have a RadScheduleView which it’s AppointmentsSource bounded to my ViewModel collection of parent type “Aa” (ObservableCollection<Aa>)

 

I also have two baskets, first one is a list of “Bb” items while the second one is a list of “Cc” items.

 

I can drag any item from each basket (“Aa” or “Bb”) and drop them on the ScheduleView so a new Appointment is created.

 

My problem is that the newly created appointment is always created from parent type “Aa” no matter which basket I selected to drag.

 

I want it to work according to the origin dragged item type so the new appointment will match the type “Bb” or “Cc”.

 

 

I Prepared a Sample code you can see here:

 

https://gist.github.com/EfiNadell/bcc10a8f93b210b7eaf626e67cf459a2

Dilyan Traykov
Telerik team
 answered on 25 Jan 2023
2 answers
173 views

In the process of debugging an issue with the size of Diagram's ManipulationAdorner, I'm wondering how the size is set, please?

This is in WPF, and I'm currently on v. 2021.1.325.40.

In Visual Studio, in the Live Property Explorer, I see the Height and Width listed as being set via "Animation and Visual States" (see attached image), and the values are not what I want.  I'm kind of assuming the properties are being set and held via animation, but I'd be glad for the confirmation.

The issue is that the size of the ManipulationAdorner is incorrect.  The discrepancy happens as the size of the business object represented as selected in the Diagram is changing for business reasons.

In a particular situation, for simplicity, a single NodeViewModelBase is selected.  I see the NodeViewModelBase's Width and Height being set to the correct values as the size of the business object changes.  However, the process of updating the business object has some intermediate, incorrect values for Width/Height in quick succession.  These intermediate values are just as a result of property-change notification order, and one of these intermediate values "sticks" or is the incorrect value that shows.  The correct value is the final value set, however.

Deselecting and reselecting the object results in a correctly sized ManipulationAdorner.

 

I don't have a simple example at hand, unfortunately.  However, is there enough information here to enable any guidance for further debugging, please?  Could the quick and repeated setting of Width & Height be interacting with the timing of WPF's animation system or with the starting/stopping of animations, if these values are indeed being controlled by animation?

I don't think I see any questions of this sort here or elsewhere on other forums.

Thanks for any info and advice!

-David

David
Top achievements
Rank 1
Iron
Iron
 answered on 25 Jan 2023
1 answer
161 views

Hi,

I need to react to arrows keys in document host, but I discovered that arrows key, in docking, moves the focus on the various parts of docking areas: can I disable this interaction?
Thank you 

Luigi

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 24 Jan 2023
1 answer
165 views

Suppose I have an Abstract Class C that inherits from Appointment and Classes A and B that inherit from C.

Class C is only inherited from Appointment but has nothing in it.

public abstract class C : Appointment { }

And classes A and B have overrides for Copy and CopyFrom

The AppointmentSource list is actually a C list.

I am currently having a problem with Drop when I drag an object of type A or B on the board and reach the

if (state.Appointment is A)
{
    base.Drop(state);
}

I get an Exception.

From what I see it probably comes from CreateNew, CopyFrom, etc.

If C is not abstract, it creates an object of type C, That is C which is neither A nor B

I verify it in AppointmentCreated

I would appreciate help on how to do this correctly

Martin Ivanov
Telerik team
 answered on 24 Jan 2023
1 answer
140 views

Hi all,

I'm a beginner in wpf and i have a question. My checkbox inside my GridViewCheckBoxColumn looks strange. it looks like a square filled or not instead of a check. How can i change this ?

 

 

to look like this

 

Here is the xaml code of my column

 

<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding SelectedProgram}"
                                            Header="Selection" Background="White"
                                            MinWidth="150" Tag="{windows:NameOf SelectedProgram, Type={x:Type local:AxisToCondition}}" IsReadOnly="False"
                                            AutoSelectOnEdit="True" EditTriggers="CellClick">
</telerik:GridViewCheckBoxColumn>

 

Is this simple to do ?

 

Thanks in advance and have a good day !

Stenly
Telerik team
 answered on 20 Jan 2023
1 answer
102 views

Hi team. I'm using EnableSmallAppointmentRendering  in

<telerik:RadScheduleView.ViewDefinitions>

to display short duration (0 minute), the problem is it will overlap the others appointment. below is my example.

As per highlighted, AMM Murobbi should appear at 13.15. not it overlap with 13.00 slot. how can I counter this issue so the appointment not display the overlap

Thank you

 

Dilyan Traykov
Telerik team
 answered on 18 Jan 2023
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
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?