Telerik Forums
UI for WPF Forum
0 answers
138 views

Hi, 

I would be happy if you could explain to me why a regular appointment opens for editing when clicked twice but an appointment that has a recurrence does not open for me by double-clicking.
what could be the problem?

        <telerik:RadScheduleView 
            SelectedAppointment="{Binding SelectedAppointment, Mode=TwoWay}"
            EditAppointmentDialogStyle="{StaticResource CustomEditAppointmentDialogStyle}"
            AppointmentsSource="{Binding Appointments}"
            DragVisualTemplate="{StaticResource DragVisualContentTemplate}"
            DragDropHighlightStyle="{StaticResource CustomDragDropHighlightStyle}">

        public CustomAppointment SelectedAppointment { get; set; }

        public class CustomAppointment : Appointment

Would appreciate help.

 

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 updated question on 26 Apr 2022
0 answers
112 views

I have documents that when saved as a .docx file and opened in Word, they display correctly.

The same document when viewed in the TK Viewer distorts (moves) the position of the elements of the document.

It is adding space where it should not be and wrapping words where they should be on a single line.

I'm attaching a short screenshot of the document in TK View as well as in Word to show difference. It is happening everywhere in the document, but just this screenshot for brevity.

Is there a setting to force it to render exactly as the display in word? Some way to resolve this?

billy
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 22 Apr 2022
1 answer
146 views

I would like to pop-up a RadContextMenu upon right clicking anywhere in the header area of the TabControl (anywhere in the green area).

Attaching the Context menu as shown below pops up the menu everywhere including the body(ie: red area), which is not desired. I only want the menu to popup in the header area (when clicking on the tabitem headers or in the blank area after the tabitems)

     <telerik:RadTabControl     x:Name="radTabCtrl"
                                   Grid.Row="1"
                                   Margin="20,10,5,5"
                                   HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                   TabStripPlacement="Left" Align="Right"
                                   DataContext="{Binding Itemss}"
                                   ItemsSource="{Binding}"
                                   PreviewTabClosed="PreviewTabClosed">
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="tabCtrlContextMenu" Opening="TabCtrlContextMenu_Opening">
                    <telerik:RadMenuItem Header="Add" Click="Menu_Add_Click"/>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>

 </telerik:RadTabControl>

 

Your help is much appreciated.

Stenly
Telerik team
 answered on 22 Apr 2022
1 answer
1.0K+ views

Hello Telerik team,

we are in trial period and exploring your product very seriously in past several days. We are interested in UI for Wpf line, but got stuck in choosing the way that is best for us and our product (lost in docs and demos to be honest). Tried  different approaches form your help, but did not manage to get it to work completely. Ended today with probably mixed implicit and explicit style options..

So, we want to have custom controls that inherit telerik's (watermarktext, datepicker, radio, combo and button for now).. These controls will have to implement some specific interfaces we need in application (not related to telerik) and also slightly override Telerik styles (for an example we want to change triggers for mouse move and focus on some of them..). At the same time, we want to apply material theme with our own color scheme (override default colors). What is the best way to do that? We would appreciate if you could provide some simple example to point us in right direction.

Thanks in advance!

Martin Ivanov
Telerik team
 answered on 20 Apr 2022
1 answer
188 views

We have watermarked some excel sheets by setting background image. When importing excel sheet into RadSpreadsheet, it is not showing background image.

Same can be reproduced in Telerik wpf Demos.

For reference I am attaching sample excel document.

 

Dimitar
Telerik team
 answered on 20 Apr 2022
1 answer
226 views

Hi,

I just bought telerik WPF and am trying to apply it to my project.

My project was based on Telerik WPF 2020 version, so I deleted it and then replaced it to a new 2022 version.

But the project is making errors on Runtime (like loaderExceptions, can not find assembly 2020) and I found that project is still referencing 2020 version libs.

Am I missing something?

 

Attempting to gather dependency information for package 'Telerik.Windows.Controls.Chart.for.Wpf.2022.1.222' with respect to project 'EPCM.HMI.Main', targeting '.NETFramework,Version=v4.7.2'
Gathering dependency information took 2.23 sec
Attempting to resolve dependencies for package 'Telerik.Windows.Controls.Chart.for.Wpf.2022.1.222' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Telerik.Windows.Controls.Chart.for.Wpf.2022.1.222'
Resolved actions to install package 'Telerik.Windows.Controls.Chart.for.Wpf.2022.1.222'
NuGet.Protocol.Core.Types.FatalProtocolException: Failed to fetch results from V2 feed at 'https://nuget.telerik.com/nuget/Packages(Id='Telerik.Windows.Controls.for.Wpf',Version='2022.1.222')' with following message : Response status code does not indicate success: 401 (Logon failed.). ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Logon failed.).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at NuGet.Protocol.HttpSource.<>c__DisplayClass15_0`1.<<GetAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at NuGet.Common.ConcurrencyUtilities.<ExecuteWithFileLockedAsync>d__4`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at NuGet.Common.ConcurrencyUtilities.<ExecuteWithFileLockedAsync>d__4`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Protocol.HttpSource.<GetAsync>d__15`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Protocol.V2FeedParser.<LoadXmlAsync>d__52.MoveNext()
   --- End of inner exception stack trace ---
   at NuGet.Protocol.V2FeedParser.<LoadXmlAsync>d__52.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Protocol.V2FeedParser.<QueryV2FeedAsync>d__50.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Protocol.V2FeedParser.<GetPackage>d__38.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Protocol.PackageMetadataResourceV2Feed.<GetMetadataAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.UI.UIActionEngine.<GetPackageMetadataAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.VisualStudio.TaskCombinators.<>c__DisplayClass1_0`2.<<ThrottledAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.VisualStudio.TaskCombinators.<ThrottledAsync>d__1`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at NuGet.PackageManagement.UI.UIActionEngine.<GetPackageMetadataAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.UI.UIActionEngine.<CheckLicenseAcceptanceAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at NuGet.PackageManagement.UI.UIActionEngine.<>c__DisplayClass11_0.<<PerformActionImplAsync>b__0>d.MoveNext()
Time Elapsed: 00:00:03.2225412

n/a
Top achievements
Rank 1
Iron
 answered on 19 Apr 2022
1 answer
264 views

(I sincerely hope this is not a duplicate and I'm not stating the question too convolutedly.)

In your Diagram/MVVM example you demonstrate binding a RadDiagram to a ViewModel including serialization and deserialization with two ViewModel classes derived from NodeViewModelBase (Model, Brand) associated with the diagram's shapes.

The XAML for the diagram defines custom styles for RadDiagramShape and RadDiagramContainerShape which (as explained in your How-To page on StyleSelectors and MVVM) bind their Position dependency property to the (derived, via NodeViewModelBase) Position property of the ViewModel classes.

<Setter Property="Position" Value="{Binding Position, Mode=TwoWay}" />

When the graph is constructed the shapes' positions are indeed taken from the ViewModel classes and when the graph is serialized, so are the positions. The serialized position values can, as expected, be found in the generated XML file.

However, when the graph is deserialized, these values are not retrieved in the DeserializeNode override (see below), neither via a call to NodeViewModelBase.DeserializeNode nor by explicitly querying the "Position" attribute in the XML. The Position property of these NodeViewModelBase-derived objects is still (0,0) upon exit. (Only the (inherited) Content property of the node-related ViewModel classes (Model, Brand) is set from "Content" XML attribute.)

Excerpt from CarsGraphSource.cs:

public override NodeViewModelBase DeserializeNode(IShape shape, Telerik.Windows.Diagrams.Core.SerializationInfo info)
{
    NodeViewModelBase node = null;
    if (shape is IContainerShape)
    {
        node = new Brand();
    }
    else
    {
        node = new Model();
    }
    if (info["Content"] != null)
        node.Content = info["Content"].ToString();
    if (info[this.NodeUniqueIdKey] != null)
    {
        var nodeUniquekey = info[this.NodeUniqueIdKey].ToString();
        this.CachedNodes[nodeUniquekey] = node;
    }

    return node;
}

Still, after deserialization, the position of the shapes is restored correctly (despite the Position property of the ViewModel classes still being (0,0).

Am I understanding something completely wrong here? Thank you very much in advance for your help.

Dilyan Traykov
Telerik team
 answered on 18 Apr 2022
1 answer
333 views

Hello,

We are planning to use the WPf RadImage in order to preview, maybe retouch, save and print images.

Then I have two questions :

Can we import base64 string images in RadImageEditor ?

Is there a way to print from the RadImageEditor ?

Thanks for your help

Julien

Dilyan Traykov
Telerik team
 answered on 15 Apr 2022
0 answers
419 views

Hi

How can I put elements in a RadListBox side by side instead of one above other

Thank you

Luigi

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 14 Apr 2022
1 answer
142 views

Is it possible to customize where it splits the text when you set TextWrapping on a column in a RadGridView?  For example, would it be possible to make it only split the text at spaces and not at other characters?  I have attached screenshots of example text in a RadGridView and the same text in Excel.

 

Dilyan Traykov
Telerik team
 answered on 14 Apr 2022
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?