Telerik Forums
UI for WPF Forum
1 answer
333 views

I have a RadMultiColumnComboBox with AutoCompleteMode="Search". If I type "asdf" into the combo box, close the dropdown without actually selecting an item, and then refresh the page I want to clear "asdf", but I cannot figure out how to clear this text. I have tried setting the selected Item to null, setting AutoCompleteProvider.SearchText to an empty string, and setting the selected index to -1. 

What am I doing wrong?

Martin Ivanov
Telerik team
 answered on 10 May 2023
1 answer
109 views

Hi,

I would like to create a docking layout with 4 controls spread over 2 rows as in the attached image. I achieved this result using compass, but I need to create the same layout by design.

Thank you

Luigi

 

Stenly
Telerik team
 answered on 05 May 2023
1 answer
109 views

Hi. I have some question.

An exception occurred while debugging the ExecutiveDashboard demo source code.

exception text : 
System.InvalidOperationException: 'An error occurred while processing this request.'
DataServiceTransportException: The request was aborted: Could not create SSL/TLS secure channel.
WebException: The request was aborted: Could not create SSL/TLS secure channel.



An error occurred while downloading and installing the ExecutiveDashboard demo app(setup.exe).

install.log : 
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [NTProductType] = 1 {int}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 10.0.0 {version}
Running checks for package '.NET Desktop Runtime 6.0.1 (x64)', phase BuildList
Checking conditions before installer checks for command 'net6desktopruntime_x64\windowsdesktop-runtime-6.0.1-win-x64.exe'
Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'AMD64': false
Result of checking conditions before installer checks for command 'net6desktopruntime_x64\windowsdesktop-runtime-6.0.1-win-x64.exe' is: No action
Running external check with command 'C:\Users\jmkim\AppData\Local\Temp\VSD29A9.tmp\net6desktopruntime_x64\NetCoreCheck.exe' and parameters 'Microsoft.WindowsDesktop.App 6.0.1'
Process exited with code 0
Setting value '0 {int}' for property 'NetCoreCheck'
The following properties have been set for package '.NET Desktop Runtime 6.0.1 (x64)':
Property: [NetCoreCheck] = 0 {int}
Running checks for command 'net6desktopruntime_x64\windowsdesktop-runtime-6.0.1-win-x64.exe'
Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'AMD64': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '6.1.0': false
Result of running operator 'ValueEqualTo' on property 'NetCoreCheck' and value '0': true
Result of checks for command 'net6desktopruntime_x64\windowsdesktop-runtime-6.0.1-win-x64.exe' is 'Bypass'
'.NET Desktop Runtime 6.0.1 (x64)' RunCheck result: No Install Needed
Launching Application.
URLDownloadToCacheFile failed with HRESULT '-2146697208'
Error: An error occurred trying to download 'http://demos.telerik.com/wpf/executivedashboard/ExecutiveDashboard.application'.

 

The same problem occurred with the SalesDashboard demo source code and app.

What caused the problem?


Martin Ivanov
Telerik team
 answered on 05 May 2023
0 answers
78 views

Hello!

I need to make a custom separate scrollbar for RadGridView.

Please tell me how can I know if some of the rows of the RadGridView are already out of area of ​​visibility and how can I find out what part of the rows is visible and position of the part of the rows?

 

Vsevolod
Top achievements
Rank 1
Iron
Iron
 asked on 04 May 2023
0 answers
105 views

Hi,

I was not able to find this answer on the forum. It looks like a simple thing to do but I was not able to understand it.

I have three RadTreeView with the following xaml options: (IsDragDropEnabled="True" AllowDrop="True" telerik:ScrollingSettingsBehavior.IsEnabled="False" IsDragTooltipEnabled="False") . All three Trees have 2 level of data of 2 different type of objects. 

The drop of an item might be allowed or not, depending on a combination on:

  • the origin tree of the Drag (tree 1, 2 or 3)
  • the type of object selected (level 1 or level 2)
  • the target tree (tree 1,2 or 3)
  • the drop position (inside, after, before)

As an example, the level 2 objects of tree 1 cannot be dropped on tree 3, while on tree 2 the can only be dropped inside the level 1, or before/after the level 2 (not inside level 2).

I implemented all the controls to allow this behaviour in the handler of "DragDropManager.AddDropHandler", in which when the drop is not allowed I simply have that the DropAction = DropAction.None and everything is working fine.

However what I would like to have is that when the drop is not supposed to be allowed, the drop preview should not be visible. by drop preview I mean the line in between items when the drop position is after/before or the highlight of the target item when the drop position is inside. Note that I still would like to keep the drag preview of the source item,  and that I disabled the dragtooltip as not of interest.

I considered using the handler "DragDropManager.AddDragInitializeHandler" to set the AllowDrop to false for all the correct items, however sometimes (like in the example above) I want to disable the drop only for certain drop positions, thus the item AllowDrop property cannot be set to false at the beginning of the drag. 

What I think I should do is to use the handler "DragDropManager.AddDragOverHandler", in which I check if the drop is feasible. If it is not, I somehow disable the drop preview, if it is allowed, i enable it once again. This is where I'm stuck.

Considering the variable var options = DragDropPayloadManager.GetDataFromObject(e.Data, TreeViewDragDropOptions.Key) as TreeViewDragDropOptions;

If after checking that the drop is not allowed I set options.DropTargetItem.AllowDrop = false, the visual result is exactly what I need. However, from that moment on the handler "DragDropManager.AddDragOverHandler" does not fire anymore on that Item, so I cannot set it again to true.

If instead I set options.DropTargetItem.IsDropAllowed = false; nothing happens.

I tried to play with the dragvisual property, setting as an example the  dragVisual.IsDropPossible = false, but it doesn't change the result (I guess that this property is only for the dragtooltip that I disabled)

Note that, if possible, I also do not want to override the drop position from the not allowed to the allowed one, like suggested in the documentation (https://docs.telerik.com/devtools/wpf/controls/radtreeview/how-to/drag-and-drop/enabled-drop-inside-only). 

           

Could you please suggest me how to proceed? Please let me know if you need more information.

Thanks in advance for your help.

 

 

Antonino
Top achievements
Rank 1
Iron
 asked on 03 May 2023
1 answer
84 views
How can I, for example, when clicking on a specific button, make its event open or display me a window or page in a new tab item dynamically, and all I have to do is select the page or window to display and it moves me to it and opens it inside a new tab item just like the Google Chrome browser
Stenly
Telerik team
 answered on 03 May 2023
1 answer
110 views

Hello,

We have performance issues on a WPF application. We did some analysis using dotTrace (attached screenshot) where we saw that the method Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size) is causing quite some delay. 

Are there any ways to get this more up to speed ?

Thanks !

Martin Ivanov
Telerik team
 answered on 03 May 2023
0 answers
108 views

Hi Telerik Team,

We are using RadMaskedCurrencyInput inside RadGridView as RowDetailTemplate. But the performance is very poor, as it takes nearly 100 milliseconds for each number typing.

Also, it takes 2 to 4 seconds when we perform Select All and typing the number.

This happens only if the control is placed inside the RadGridView.

We have the same control outside the RadGridView for testing purpose which performs good.

Please let me know if any optimization can be done with this.

Below are the code we are using.

<tk:RadMaskedCurrencyInput

                    maskedInput:MaskedInputExtensions.MaxTextLength="5"

                    maskedInput:MaskedInputExtensions.Minimum="0"

                    FontSize="12"

                    FontWeight="DemiBold"

                    IsCurrencySymbolVisible="False"

                    Mask=""

                    SpinMode="None"

                    TextMode="PlainText" />

 

I'm not able to attach the video file here.
Thank You.

Premkumar
Top achievements
Rank 1
Iron
Iron
 asked on 02 May 2023
0 answers
302 views

Hello, I have an issue with one column in the RadGridView.

I managed to bind a column to a value in the dictionary of my GridViewRow's DataContext.

Altought the filter icon appears, inside the list in the filter control I see only 1 item with the value "null", instead of the string values.

In the column itself, I can see all the values as expected.
I tried to set the DataMemberType/FilterMemberType to System.String, FilterMemberPath, add a converter that returns the string, and many other things that didn't work.

How can I filter this property?

The RadGridViewDataColumn is bound to a dictionary value on the DataMemberBinding property:
DataMemberBinding="{Binding MyDictionary[MyEnum.FirstValue].Title}"

Please see the "MyDemoProject.zip" example in the comments.

** Also sorting is not working. The sorting clears the RadGridRows, I think that it happens because of the same issue.

alex
Top achievements
Rank 2
Bronze
Iron
Iron
 updated question on 01 May 2023
1 answer
107 views

Hi

I have a model class that it is in the form

Class A
{
	public List<B> B {get;set;}
	public List<C> C {get;set;}
}

And I would build a treeview with a list of A: A1, A2 in this way:


A1
	Objects of type B
		B1
		B2
	Objects of type C
		C1
		C2
A2
	Objects of type B
		B3
		B4
	Objects of type C
		C3
		C4

But the second level is missing in the model class (we can see it as a "virtual level"). Is there a way to add the level directly in xaml (the number and the tags of the elements are fixed by design).

Thank you

Luigi

Petar Mladenov
Telerik team
 answered on 01 May 2023
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?