Telerik Forums
UI for WPF Forum
2 answers
145 views

I want to set the focus on an embedded textbox in a GridViewDataColumn

I tried on the AddingNewDataItem event the following with no success:

var grid = e.OwnerGridViewItemsControl;
grid.CurrentColumn = grid.Columns[1];

I've tried sending keys on  the RowEditEnded event. Nothing works.

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jul 2021
0 answers
156 views

Hi,

I was combine shapes in code. And combined shape add to toolbox.

But Drag to diagram. then, Not Available.

I want to draw custom shape. And Save to Xml.

Thanks.

kim
Top achievements
Rank 1
Iron
 asked on 05 Jul 2021
7 answers
403 views

is there anyone that had experienced this? I recently updated our 2014 controls to 2021 controls.

Although I haven’t experienced it myself, our customers are experiencing an odd issue when they type with the rad rich box text editor

 The app simply freezes. Our editor does extend the base radrichtextbox control and has its own style so perhaps there is some property that behaves differently now?

Paul

Pavel
Top achievements
Rank 1
Iron
Iron
 answered on 05 Jul 2021
1 answer
186 views

Hi,

Is there a quickest way to hide center connectors of shapes? Because sometimes when you'd like to drag a shape and it ends up creating a self-connected connection. That might be annoying to the end users.

Thanks!

Martin Ivanov
Telerik team
 answered on 02 Jul 2021
1 answer
341 views

I would like to know what's the equivalent of `OnSourceInitialized` for the `RadWindow`?

My need is to disable the WPF hardware acceleration for the window because of some calls to python with CUDA
causing WPF thread rendering issue.

How does one disable hardware acceleration in wpf? - Stack Overflow

Thank you,
Amaury

Martin Ivanov
Telerik team
 answered on 02 Jul 2021
0 answers
109 views

I'm trying to create a chart series with a gradient fill but for some reason the serie isn't showing on the sceen.
When i use a solidcolorbrush i have no issues but with the LinearGradientBrush it's not working.

The LinearGradientBrush is created correctly so i seems so kind of display issue?

What do i need to do to make this work? Is there any example i can check to see how this should work?

JIG
Top achievements
Rank 1
 asked on 02 Jul 2021
1 answer
225 views

Hi telerik,

I've created .Net 5 project , however  telerik controls can't be seen on xaml designer,  although wpf default controls are shown well.  On running, all controls are seen and working without problem.

With the help of many threads regarding this subject , I  found your reply how to remove designer cache and set the extension option,etc.  While I did all steps as you said, no success yet.  

My situation is as follows, 

 - telerik 2021.2.615 and  vs2019  16.10.2 installed.

 - projects are created as WPF 5.0 project, not by tererik wpf template because it only support till .net 4.5.

    Projects target is 'ANY CPU'.

 -  NoXaml dlls are copied to solution folder from installed directory, and all projects referenced  those.

    Double checked that no cross referenced dll exists between NoXaml and Xaml dlls.

 

During checking, I found that toolbox configuratIon  supports only .net 4.5. as attached image. 

Does that mean that I missed something ?  so designer failed to load telerik controls ?

 

TIA

Kang

Yonggu Kang
Top achievements
Rank 1
Iron
 answered on 02 Jul 2021
1 answer
152 views

Hello.

I am trying to use Empty GridView Message Content of GridView in SDK.

I saw an error when using GridView Empty inside a TabControl.

How do I solve this part?

 

EmptyGridViewMessageBehavior.cs

private void InsertAdditionalContentControl() { if (this.additionalContentControl.Content != this.messageContent) { this.additionalContentControl.Content = this.messageContent; } var rootGrid = this.gridView.FindChildByType<Grid>(); // rootGrid is Null. rootGrid.Children.Add(this.additionalContentControl); // System.NullReferenceException }

//If I put TabControl, TabItem instead of Grid in FindChildByType<Grid>, rootGrid.Children could not be resolved.

 

Thanks.

Martin Ivanov
Telerik team
 answered on 01 Jul 2021
0 answers
272 views

Hi.
I get Index out of range when try to expand node in my RadTreeview.

I expand and select two items,
Then I try to expand a different node (same root but different branch) and I get the error:

System.IndexOutOfRangeException
  HResult=0x80131508
  Message=Index was outside the bounds of the array.
  Source=Telerik.Windows.Controls.Navigation
  StackTrace:
   at Telerik.Windows.Controls.TreeView.IndexTree.CumulativeValue(Int32 endIndex)
   at Telerik.Windows.Controls.TreeView.TreeViewPanel.ExtendDesiredSize(ItemsControl itemsControl, Size stackDesiredSize, Int32 pivotIndex, Boolean before)
   at Telerik.Windows.Controls.TreeView.TreeViewPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize) in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs:line 4406
   at System.Windows.UIElement.Measure(Size availableSize) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs:line 658
   at System.Windows.ContextLayoutManager.UpdateLayout() in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs:line 315
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs:line 583
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs:line 1968
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs:line 1845
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs:line 1746
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 137
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 46
   at System.Windows.Threading.DispatcherOperation.InvokeImpl() in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperation.cs:line 549
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Internal/CulturePreservingExecutionContext.cs:line 216
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 215
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 56
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Internal/CulturePreservingExecutionContext.cs:line 183
   at System.Windows.Threading.DispatcherOperation.Invoke() in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperation.cs:line 455
   at System.Windows.Threading.Dispatcher.ProcessQueue() in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 2105
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 2340
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Win32/HwndWrapper.cs:line 330
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Win32/HwndSubclass.cs:line 433
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 137
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 46
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 1342
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Win32/HwndSubclass.cs:line 378
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 2135
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 329
   at System.Windows.Threading.Dispatcher.Run() in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 297
   at System.Windows.Application.RunDispatcher(Object ignore) in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs:line 2405
   at System.Windows.Application.RunInternal(Window window) in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs:line 1695
   at System.Windows.Application.Run() in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs:line 198
   at NsModules.App.Main()

  This exception was originally thrown at this call stack:
    Telerik.Windows.Controls.TreeView.IndexTree.CumulativeValue(int)
    Telerik.Windows.Controls.TreeView.TreeViewPanel.ExtendDesiredSize(System.Windows.Controls.ItemsControl, System.Windows.Size, int, bool)
    Telerik.Windows.Controls.TreeView.TreeViewPanel.MeasureOverride(System.Windows.Size)
    System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) in FrameworkElement.cs
    System.Windows.UIElement.Measure(System.Windows.Size) in UIElement.cs
    System.Windows.ContextLayoutManager.UpdateLayout() in LayoutManager.cs
    System.Windows.ContextLayoutManager.UpdateLayoutCallback(object) in LayoutManager.cs
    System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() in MediaContext.cs
    System.Windows.Media.MediaContext.RenderMessageHandlerCore(object) in MediaContext.cs
    System.Windows.Media.MediaContext.RenderMessageHandler(object) in MediaContext.cs
    ...
    [Call Stack Truncated]

 

If I invert the order of selection the error don't raise.

In the figure: first I select the node in yellow, then I click in the arrow in red

 

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 updated question on 01 Jul 2021
1 answer
177 views

Hello.

When using RadAutoCompleteBox, an error occurs in the debug output if the tab is changed.

[System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadWatermarkTextBox']

The issue has been around for a long time. I heard it's a wpf timing issue.

I also found this issue on the feedback portal.
https://feedback.telerik.com/wpf/1351336-a-binding-error-is-printed-in-the-output-on-start-up-for-elementname-watermarktextbox

Are you still using the above post and can't fix it?

 

Thanks.


Dinko | Tech Support Engineer
Telerik team
 answered on 01 Jul 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?