Telerik Forums
UI for WPF Forum
3 answers
117 views

When the binding mode is set to TwoWay on SelectedAppointment, you cannot edit an appointment with a Recurrence pattern after is has been created.

The ShowDialog event will not even fire. Is this intended behavior?

Regards,

2020.1.218.45

 

SelectedAppointment="{Binding Selected, Mode=TwoWay}"
Kalin
Telerik team
 answered on 07 May 2020
2 answers
69 views

When implementing ScheduleViewDragDropBehavior, the behavior performs correctly, but the XAML designer indicates "CustomScheduleViewDragDropBehavior is not a valid value for property 'DragDropBehavior'."

<telerik:RadScheduleView.DragDropBehavior>
    <ViewModels:CustomScheduleViewDragDropBehavior/>
</telerik:RadScheduleView.DragDropBehavior>

 

Regrards,

Brian
Top achievements
Rank 1
Veteran
 answered on 06 May 2020
2 answers
147 views

Windows 10 Pro 64, Visual Studio 2019, Telerik.UI.for.Wpf.NetCore.Xaml 2020.1.218

I'm starting  up a new project and want to use RadWindow as my main window, so I found this explanation of what to do and followed it:

https://www.telerik.com/support/kb/wpf/window/details/how-to-use-radwindow-as-main-window

My problem is that the RadWindow seems to be ignoring the properties I put into the MainWindow.xaml, so it displays a main window just large enough to contain the title bar in the upper left corner of my desktop with "RadWindow" as the header.  I added code in the MainWindow's  constructor in the code-behind and that works.  What have I missed?

MainWindow.xaml:

<telerik:RadWindow x:Class="MainWindow"
    Header="Program Launcher" WindowStartupLocation="CenterScreen" Height="200" Width="400">
    <Grid>
         
    </Grid>
</telerik:RadWindow>

 

MainWindow.xaml.cs:

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
 
namespace ProgramLauncher
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : RadWindow
    {
        public MainWindow()
        {
            //InitializeComponent();
            //    Header = "Program Launcher";
            //    WindowStartupLocation = WindowStartupLocation.CenterScreen;
            //    Height = 200;
            //    Width = 400;
        }
    }
}

 

Note: Code that sets window properties is coded out to show initial conditions that caused the problem.

app.xaml:

<Application x:Class="ProgramLauncher.App"
    <!--StartupUri="MainWindow.xaml">-->
    <Application.Resources>
      <ResourceDictionary>
          <ResourceDictionary.MergedDictionaries>
          </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
    </Application.Resources>
</Application>

 

app.xaml.cs:

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
 
namespace ProgramLauncher
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
           //this.InitializeComponent();
        }
        protected override void OnStartup(StartupEventArgs e)
        {
            new MainWindow().Show();
            base.OnStartup(e);
        }
    }
}

 

Bad Main Window.png shows the main window as it originally appeared when I was assigning the properties only in the xaml.  Good Main Window.png shows how the main window should appear, centered on my screen.  That's how it looks after I added the code to MainWindow's constructor to set the properties.

Dinko | Tech Support Engineer
Telerik team
 answered on 06 May 2020
4 answers
124 views

When activating tabs by clicking on the header, some tabs take a while to load because the contents are slow to load. This is not a problem.

However, when this happens, frequently the tab is dragged and torn off the radtabbedwindow, creating a new one.

Is there a way to stop tearing off tabs if the mouse has move less than 20 pixels for example?

Max
Top achievements
Rank 1
Veteran
Iron
 answered on 05 May 2020
3 answers
160 views
Hi,
I try to perform UI automation tests.
I use Microsoft UI Automation Test Library.
The way I try to do that is to place some shapes on the map and check if they are visible.
Now the only information I can get is RadMap Control.

Is it possible to go deeper in RadMap Control and find shapes placed on it using UI Automation Library?

Regards,
Rafał
Milena
Telerik team
 answered on 05 May 2020
1 answer
146 views

I'v tried to follow a few of the how to do it but I do not get any data in my controller.

The code below is my latest attempt. If I create RadTreeViewItems in my ViewModel and then set them directly to the ItemsSource the treview is populated.

Can anyone see if I am missing something?

<UserControl.Resources>

        <viewmodels:FilterViewModel x:Key="FVM" />

        <DataTemplate x:Key="QualifierHDT"
                      DataType="{x:Type models:Qualifier}">
            <TextBlock Text="{Binding Name}" />
        </DataTemplate>
        
        <HierarchicalDataTemplate x:Key="ComponentHDT"
                                  DataType="{x:Type models:Component}"
                                  ItemsSource="{Binding Components}"
                                  ItemTemplate="{StaticResource QualifierHDT}">
            <TextBlock Text="{Binding Name}" />
        </HierarchicalDataTemplate>

        <HierarchicalDataTemplate x:Key="SystemCollectionHDT"
                                  DataType="{x:Type models:SystemCollection}"
                                  ItemsSource="{Binding SystemCollections}"
                                  ItemTemplate="{StaticResource ComponentHDT}">
            <TextBlock Text="{Binding Name}" />
        </HierarchicalDataTemplate>

        <HierarchicalDataTemplate x:Key="BuildingHDT"
                                  DataType="{x:Type models:Building}"
                                  ItemsSource="{Binding Buildings}"
                                  ItemTemplate="{StaticResource SystemCollectionHDT}">
            <TextBlock Text="{Binding Name}" />
        </HierarchicalDataTemplate>

        <HierarchicalDataTemplate x:Key="AreaHDT"
                                  DataType="{x:Type models:Area}"
                                  ItemsSource="{Binding Areas}"
                                  ItemTemplate="{StaticResource BuildingHDT}">
            <TextBlock Text="{Binding Name}" />
        </HierarchicalDataTemplate>


        <Style x:Key="ItemContainerStyle" TargetType="{x:Type telerik:RadTreeViewItem}">
            <Setter Property="IsSelected" Value="{Binding Path=Selected}"/>
            <Setter Property="IsExpanded" Value="{Binding Path=Expanded}"/>
        </Style>
    
        <helpers:FilterViewTemplateSelector x:Key="myDataTemplateSelector"
                                            AreaTemplate="{StaticResource AreaHDT}"
                                            BuildingTemplate="{StaticResource BuildingHDT}"
                                            SystemCollectionTemplate="{StaticResource SystemCollectionHDT}"
                                            ComponentTemplate="{StaticResource ComponentHDT}"
                                            QualifierTemplate="{StaticResource QualifierHDT}"/>
        
    </UserControl.Resources>

 

 <telerik:RadTreeView MinWidth="200px"
                             ItemsSource="{Binding Source={StaticResource FVM}}"
                             ItemTemplate="{StaticResource AreaHDT}"
                             ItemContainerStyle="{StaticResource ItemContainerStyle}"
                             ItemTemplateSelector="{StaticResource myDataTemplateSelector}">
        </telerik:RadTreeView>

 

Class structure

Class  Area

string Name;

ICollection<Building> buildings

 

Class Building

string Name:

ICollection<SystemCollection> SystemCollections

 

Class SystemCollection

string Name;

ICollection<Componennt> Components

 

Class Component

string Name;

ICollection<Qualifier> Qualifiers

 

Class Qualifier

String Name;

 

 

Vladimir Stoyanov
Telerik team
 answered on 05 May 2020
1 answer
150 views

As the title suggest, my question is if it is possible to set the DateTimeWatermarkContent of the DateTimePicker control based on if the DatePicker is enabled or not. 

More specifically what I want to do is to remove the DateTimeWatermarkContent text when the control is disalbled.

How would I go about doing that?

Vladimir Stoyanov
Telerik team
 answered on 05 May 2020
1 answer
234 views

We are developing projects using Telerik controls. Including 1 module with zoom feature for RadGridView. I ran your sample in link (https://www.telerik.com/forums/scale-font-with-grid-width#dO4Kn_YdzEW3UENkNr5GUg) .

But there was a problem when I zoomed out. Border in row is lost, and this disappearance is asynchronous (In the photo attached). You can consider this issue not help me?

chien
Top achievements
Rank 1
 answered on 05 May 2020
1 answer
121 views

Hello, 

I've just started reviewing RadScheduleView with the intent on connecting it with data in a SQL database. While reviewing the documentation at 

https://docs.telerik.com/devtools/wpf/controls/radscheduleview/populating-with-data/binding-to-database/binding-to-db-datatier

I noticed the table definition for SqlAppointments has the column definition SqlAppointmentId as type Int. I expected to find a property of type Int in the Appointment class, but found only the property UniqueID of type string.

During test, the UniqueID property produces a value that looks to be a GUID. There are no properties within the class definition that would seem to support the database column type.

What is the designed primary key for synchronizing database records with in-memory runtime instances of an appointment?

 

 

Vladimir Stoyanov
Telerik team
 answered on 04 May 2020
5 answers
428 views

The exception occurred when we clicked the RadComboBox to update the items.

EXCEPTION :System.ArgumentNullException: Value cannot be null.
Parameter name: key
   at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   at Telerik.Windows.Automation.Peers.RadComboBoxAutomationPeer.CreateItemAutomationPeer(Object item)
   at System.Windows.Automation.Peers.ItemsControlAutomationPeer.GetChildrenCore()
   at Telerik.Windows.Automation.Peers.RadComboBoxAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
   at System.Windows.Automation.Peers.ItemsControlAutomationPeer.UpdateChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.ContextLayoutManager.fireAutomationEvents()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

 

Dinko | Tech Support Engineer
Telerik team
 answered on 01 May 2020
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?