Telerik Forums
UI for WPF Forum
1 answer
229 views
Hi, 

I'm trying to use your DragDropManager to be able to reorder my lists as I wish. 

And I have to congratulate you because it's very easy to use when you just want to reorder a list.

Unfortunately, I would like to execute a method after each drag and drop action.

I tried to bind a command on the Drop event but the list order wasn't modified yet. 

So I found the telerik:DragDropManager.DragDropCompleted which seemed perfect but I didn't succeed to use it.

I tried to respect MVVM pattern with the telerik:EventToCommandBehavior, System.Windows.Interactivity.EventTrigger but it didn't work.

I also tried to use it in the code-behind (xaml.cs) but nothing works.


Can you help me to understand what's the problem ?

And can you also help me to find a way to resolve my problem within respect the MVVM pattern ?


Thanks in advance for your time and your answer.
Martin Ivanov
Telerik team
 answered on 28 Jul 2023
1 answer
200 views

With every new release, we recompile the libraries so that we can set the application name to meet licensing requirements.

However, with 2023 R3, the compilation is failing due to four instances of a call to FunctionBase.LinearInterpolate in BrushRenderer.cs which leads to the following compilation error:

Fixed\UI\BrushRenderer.cs(233,50): error CS0117: 'Telerik.Windows.Documents.Fixed.Model.Common.Functions.FunctionBase' does not contain a definition for 'LinearInterpolate'

The LinearInterpolate method is definitely not defined in FunctionBase, would appreciate any available help on this.

 

Fixed\UI\BrushRenderer.cs(233,50): error CS0117: 'Telerik.Windows.Documents.Fixed.Model.Common.Functions.FunctionBase' does not contain a definition for 'LinearInterpolate' [C:\agent\_work\13\s\Source\Controls\PdfViewer\FixedDocumentViewers\Telerik.Windows.Controls.FixedDocumentViewers_WPF.csproj] [C:\agent\_work\13\s\Source\Build\BuildControls.proj]
Fixed\UI\BrushRenderer.cs(233,50): error CS0117: 'Telerik.Windows.Documents.Fixed.Model.Common.Functions.FunctionBase' does not contain a definition for 'LinearInterpolate' [C:\agent\_work\13\s\Source\Controls\PdfViewer\FixedDocumentViewers\Telerik.Windows.Controls.FixedDocumentViewers_WPF.csproj] [C:\agent\_work\13\s\Source\Build\BuildControls.proj]
Martin Ivanov
Telerik team
 answered on 28 Jul 2023
1 answer
111 views

Hi Telerik,

I know there is a way to print the Gantt View with data hidden behind the horizontal scrollbar, which I have worked 5 years ago.

But I'm not sure that can be done in RadGridView.

I mean I'm having 10 columns in RadGridView, in which 2 columns are scrolled inside horizontal scroll bar.

I want to print the rows in the visible area with all the 10 columns. Please help me if there is any way to achieve this.

 

Thanks and Regards,

Muhammad Azhar Shah

Martin Ivanov
Telerik team
 answered on 27 Jul 2023
1 answer
143 views

When using version 2023.2.718 targeting .NET 6.0 on VS 2022, I tried to create a RadCartesianChart as described here: https://docs.telerik.com/devtools/wpf/controls/radchartview/multiple-chart-series

The PointSeries and BarSeries are recognized as expected, but LineSeries generates errors that make the designer complain about invalid markup:

The program builds and runs fine.

Anyone have a clue as to what is happening here?

 

Dinko
Telerik team
 answered on 25 Jul 2023
1 answer
294 views

For a home project I'm working on, I have paid upto version R3 2021 SP2.  Will this version work with Visual Studio 2022 and can I use .NET 7 with this version?

If not, what is the most current version of Telerik UI WPF that does support Visual Studio 2022?

What is the most current version of Telerik UI WPF that supports .NET 7?

Thanks, Rob.

Martin Ivanov
Telerik team
 answered on 24 Jul 2023
1 answer
181 views

Hi,

I attached a little wpf application that open a pdf file (to put in building folder ) with an image inside.

I tested it in 4 machine (2 w11, 2 w10): I can see the image in 2 machine (1 w11, 1 w10), and I can't in the others (1 w11, 1 w10), what could be the problem?

Thank you

Luigi

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 21 Jul 2023
1 answer
135 views

Hello,

When using the ScheduleView in month view, I find that the visibility of the expand button is fixed to the minimum height of the day slot, i.e., it appears when the number of appointments in a day exceed those that are visible at the minimum height regardless of whether there is still available room (for example, when the window is maximized).  How can this be corrected so that it only appears when there are appointments out of view?

 

Vic
Top achievements
Rank 1
Iron
 answered on 21 Jul 2023
1 answer
122 views

Hello,

I'm building a gauge specifying custom ticks. The gauge is pretty narrow in range, and the ticks fall on double values, like 2.3421 and 4.5214.

It looks like the ticks are getting rounded to int, but I want them to maybe apply a string format to them to display 2 decimal values, how can I do this?

Oscar
Top achievements
Rank 1
Iron
 answered on 19 Jul 2023
1 answer
152 views

Hi guys,

For my RadSpreadSheet component, I have implemented some custom functions using the FunctionWithArguments implementation. I have a BaseCustomFunction custom class which inherits from the FunctionWithArguments telerik class, and for example, I have a Q1QFunction class which inherits from my BaseCustomFunction, as below:

Imports MAAObject.AerodynamicObject
Imports Telerik.Windows.Documents.Spreadsheet.Expressions
Imports Telerik.Windows.Documents.Spreadsheet.Expressions.Functions

Namespace Aerodynamic.Calculator

    Public Class Q1QFunction
        Inherits BaseCustomFunction

#Region "Properties"

        Public Overrides ReadOnly Property Type As ECustomFunction
            Get
                Return ECustomFunction.Q1_Q
            End Get
        End Property

#End Region

        Public Sub New(name As String, description As String)
            MyBase.New(name, description)
        End Sub

#Region "Methods"

        Protected Overrides Function GetFunctionInfos() As FunctionInfo
            Dim requiredArguments As IEnumerable(Of ArgumentInfo) = New ArgumentInfo() {
                New ArgumentInfo("Altitude_ft", "The value of the Altitude, in ft.", ArgumentType.Number),
                New ArgumentInfo("Mach", "The value of the Mach.", ArgumentType.Number),
                New ArgumentInfo("ISA_ºC", "The value of the ISA, in Celsus degrees.", ArgumentType.Number),
                New ArgumentInfo("Mach_Option", "The value of the Mach Option.", ArgumentType.Text),
                New ArgumentInfo("Cpressure", "The value of the Cpressure.", ArgumentType.Number),
                New ArgumentInfo("Mach1_Known", "The value of the known Mach1.", ArgumentType.Number)
            }

            Dim optionalArguments As IEnumerable(Of ArgumentInfo) = New ArgumentInfo() {}

            Return New FunctionInfo(Me.Name, FunctionCategory.MathTrig, Me.Description, requiredArguments, optionalArguments, 0, True)
        End Function

        Protected Overrides Function EvaluateOverride(context As FunctionEvaluationContext(Of Object)) As RadExpression
            If context.Arguments.Length <> Me.FunctionInfo.RequiredArgumentsCount Then Return Nothing

            Dim altitude As Decimal
            If Not Decimal.TryParse(context.Arguments(0), altitude) Then Return Nothing 'tester le return nothing

            Dim mach As Decimal
            If Not Decimal.TryParse(context.Arguments(1), mach) Then Return Nothing

            Dim isa As Decimal
            If Not Decimal.TryParse(context.Arguments(2), isa) Then Return Nothing

            Dim machOption As String = CStr(context.Arguments(3))
            If Not {"YES", "NO"}.Contains(machOption) Then
                Throw New ExpressionException("Mach_Option parameter must be ""YES"" or ""NO""")
            End If

            Dim cPressure As Decimal
            If Not Decimal.TryParse(context.Arguments(4), cPressure) Then Return Nothing

            Dim mach1Known As Decimal
            If Not Decimal.TryParse(context.Arguments(5), mach1Known) Then Return Nothing

            Return New NumberExpression(AerodynamicCalculator.Q1_Q(altitude, mach, isa, machOption, cPressure, mach1Known))
        End Function

#End Region

    End Class

End Namespace

 

> I have a question about the machOption parameter inside the EvaluateOverride method: is it possible to raise an error if the parameter hasn't the desired value? For example I want to return #VALUE or #REF or another error message, and avoid the calculation of the formula if something provided is wrong.

I tried to use the ErrorExpression or RadExpression base classes, but I can't build them because no New Constructor method is available.

 

Do you know how I can do that?

 

Thank you!

Valentin M.

Dimitar
Telerik team
 answered on 19 Jul 2023
1 answer
99 views

Hello,

how to dectect if upload is completed?
for me i will use the cloud upload control in diffenent windows to update diffenet objects. 

actually i found no way to find out if the upload control upload ist completed?

kind regards

Martin Ivanov
Telerik team
 answered on 18 Jul 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?