Telerik Forums
UI for WPF Forum
0 answers
875 views

Hello, I have upgraded application to .Net 6.0 ,while I trying to add DLL to toolbar then it gives following error [refer screenshot].

when I run the project it throws exception about Telerik,  as

The invocation of the constructor on type 'Telerik.Windows.Controls.RadMenu' that matches the specified binding constraints threw an exception

following inner exception

" TypeInitializationException: The type initializer for 'Telerik.Windows.Controls.TelerikLicense' threw an exception."

and

"MissingMethodException: Method not found: 'System.ActivationContext System.AppDomain.get_ActivationContext()'."

 

please suggest.

Akshay
Top achievements
Rank 1
 asked on 18 Feb 2022
1 answer
93 views

Hi,

I am using the RadRadialMenu to navigate a dynamically built structure (arbitrary depth, arbitrary width) - I know the width can become an issue as item sectors can become very small, but this is contained.

It works really great and the users love it, but each time the menu refreshes it eats up memory that does not get released again.

If I strip out the actual building of the RadialMenuItems (custom class RadialMenuItemVM that implements IRadialMenuItem) then there is no build-up of memory.

I have created a small demo app that resembles the full app but with a very limited structure and content. On refreshing the menuitems the memory usage in VisualStudio diagnostic session starts to grow. With the limited size of the structure, the memory growth is slow, but it is definitely noticeable after a number of refreshes.

The one thing that I did notice is that the destructor of the RadialMenuItemVM instances only gets called upon closing the window. There seems to be a sticky reference that keeps them alive until the actual radial menu is destroyed.

Sample Project attached. Note that I have removed Telerik lib contents to reduce size so references might require updating

Dilyan Traykov
Telerik team
 answered on 23 Dec 2021
1 answer
69 views

Hi,

I am using the RadRadialMenu with a data-bound ItemsSource. It is a control within a grid that is always showing, i.e. not a context-menu. When showing the UserControl for the first time the menu is shown in its closed state. Clicking on the RadialMenuButton opens the menu and all menu items are shown as expected. However, setting the IsOpen property to true shows the menu in an open state, but with no menu items. The user has to click on the RadialMenuButton to close the menu and then click it again to open, which will then show the items.

Is this a bug or am I not setting something?

Regards

Renier Pretorius
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 03 Dec 2021
1 answer
64 views

I have added Radial menu as RadialContextMenu in RadGridView.

I want to get the selectedRow DataContext on item click. 

I tried to set RadRadialMenu.DataContext as Gridview Selected Item, but as ItemClick datacontext is null. Default datacontext of Radial menu is UserControl's DataContext. which need to be replaced with GridView Selected Row.

 

I have one option to Bind DataContex of individual RadRadialMenuItem with GridView selectedItem, but It seems not proper way.

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Jan 2021
1 answer
28 views

Hi,

I want to change One item angle. because my program use 6 items in radialmenu but it already splite as if use 8 items (One Item Degree = 45). then i use 6 items. i want to change 60 degree of one item.

 

im korean 20 developer so, im do not think my english grammar is well.

if you look difficult my grammar. im sorry and thank you for response.

정말 감사합니다.(= thank you so much)

Vladimir Stoyanov
Telerik team
 answered on 23 Sep 2020
3 answers
262 views

Hi dear Telerik Team,

I have a problem with the positioning as context menu.

I would like to show the menu at mouse position. But it appears somewhere else.
See screenshot. The mouse was over the green box. 
The screenshot is taken from your xaml examples.

Mouse and MousePoint have the same problem.

How can I solve this.

Vladimir Stoyanov
Telerik team
 answered on 05 Feb 2020
4 answers
95 views

Hi dear Telerik Team, 

 

I'm just facing an issue which took me Hours to (possibly :) ) understand.

 

I'm using a RadialMenu via RadialContextMenu in a RadGridView. While my RadialMenu did not Hide as it was intended, I guess I can reproduce this in a simple Environment as well: 

Usually RadialMenu behaves as inteded. 

However if Opening the RadialMenu with MouseRightClick on a ColumnHeader (instead on one of the rows), every intend of hiding that RadialMenu via "RadialMenuCommands.Hide.Execute(null, null);" Fails. 

After somehow Closing it (via rightclick on a row), it reopens, however hiding again Fails. 

I have just retested in another sample: RadialMenu is especially not Hiding if you just select a cell and without causing any other Events also Right-click same GridCell to open the Radial Button. Now after leaving the RadialMenu it should hide because there is an Event on MouseLeave which is invoking RadialMenuCommands.Hide.Execute(null, null). However that does not take effect.

Am I overseing something? Can you help?

 

Can't attach my Code. How can I? 

Vladimir Stoyanov
Telerik team
 answered on 12 Dec 2019
1 answer
50 views

Hi,

I would like to customise the animation for the opening and navigate event/state of the radial menu. How can I do it? Thank you! 

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Nov 2019
5 answers
92 views

Hi~

I want to show RadialMenu over TileViewItem.

TileViewItem hide RadialMenu.

Here is example code.

<Window x:Class="TileView.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                xmlns:tileView="clr-namespace:Telerik.Windows.Controls.TileView;assembly=Telerik.Windows.Controls.Navigation"
                Title="MainWindow" Height="350" Width="525">

    <Window.Resources>
        <Style TargetType="telerik:RadTileView">
            <Setter Property="PreservePositionWhenMaximized" Value="True" />
            <Setter Property="telerik:TileViewPanel.IsVirtualized" Value="True" />
            <Setter Property="IsAutoScrollingEnabled" Value="True" />
            <Setter Property="TileStateChangeTrigger" Value="SingleClick" />
            <Setter Property="MinimizedColumnWidth" Value="180" />
            <Setter Property="MinimizedRowHeight" Value="155" />
            <Setter Property="RowHeight" Value="250" />
            <Setter Property="ColumnWidth" Value="250" />
            <Setter Property="ColumnsCount" Value="3" />
        </Style>
        <Style TargetType="telerik:RadTileViewItem">
            <Setter Property="Background" Value="#eaeaea" />
        </Style>
        <DataTemplate x:Key="sizeTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Item" />
                <TextBlock Text="{Binding}" />
            </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="contentTemplate">
            <StackPanel>
                <telerik:RadRadialMenu Panel.ZIndex="99999">
                    <telerik:RadRadialMenuItem Header="Item 1" />
                    <telerik:RadRadialMenuItem Header="Item 2" />
                    <telerik:RadRadialMenuItem Header="Item 3" />
                </telerik:RadRadialMenu>
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    
    <Grid>
       
        <telerik:RadTileView  ItemsSource="{Binding}" ItemTemplate="{StaticResource sizeTemplate}"
                              ContentTemplate="{StaticResource contentTemplate}"  />
    </Grid>
</Window>

You can see capture file "Actual.png"

I want to "Expect.png" screen.

How?

Russell
Top achievements
Rank 1
 answered on 19 Oct 2017
2 answers
132 views

Hello, 2 questions about radialmenu.

Q1: According to the documentation, all the PlacementModes will auto-adjust the location of the menu if any of it will be cut off by screen bounds. I'd like to know how, if possible, to disable this behavior, so it opens exactly how it was told to, ignoring screen bounds. An example would be great.

Q2: I have a simple button that uses a RadialContextMenu, the RadialMenu sets "IsOpen=true" in XAML. The first click works great where the radialmenu is already open. However if I close the menu, then click the button again, it is always closed and I have to click the center button to open it.

Code:

        <Button Height="40" Width="40" Grid.Row="0" Grid.Column="0">

            <telerik:RadRadialMenu.RadialContextMenu>
                <telerik:RadRadialMenu PopupPlacement="Center" ShowEventName="Click" HideEventName="LostFocus" InnerRadiusFactor="0.0" InnerNavigationRadiusFactor=".8" OuterRadiusFactor="2" Width="200" Height="200" StartAngle="180" IsOpen="True">
                    <telerik:RadRadialMenuItem CanUserSelect="False" ContentSectorBackground="LightGreen" Header="Auto" GroupName="ModeGroup" Command="{Binding ChangeModeCommand}" CommandParameter="AutoModeView"/>
                    <telerik:RadRadialMenuItem CanUserSelect="False" ContentSectorBackground="LightGray" Header="Idle" GroupName="ModeGroup" Command="{Binding ChangeModeCommand}" CommandParameter="IdleModeView"/>
                    <telerik:RadRadialMenuItem CanUserSelect="False" ContentSectorBackground="LightPink" Header="Stop" GroupName="ModeGroup" Command="{Binding ChangeModeCommand}" CommandParameter="StopModeView" IsSelected="true"/>
                    <telerik:RadRadialMenuItem CanUserSelect="False" ContentSectorBackground="LightCyan" Header="Setup" GroupName="ModeGroup" Command="{Binding ChangeModeCommand}" CommandParameter="SetupModeView"/>
                    <telerik:RadRadialMenuItem CanUserSelect="False" ContentSectorBackground="LightCoral" Header="OEMSetup" GroupName="ModeGroup" Command="{Binding ChangeModeCommand}" CommandParameter="OEMSetupModeView"/>
                </telerik:RadRadialMenu>
            </telerik:RadRadialMenu.RadialContextMenu>

        </Button>

 

Also... any updates on having the radialmenuitems automatically fill the radialmenu? So when you only add 2 items it fills the white space, and so on?

 

Thanks

Kalin
Telerik team
 answered on 26 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?