Telerik Forums
UI for WPF Forum
2 answers
231 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
9 answers
396 views

Hello Telerik Team,

currently i'm building a text editor with 4 column layout (grid - raddocking split into 2 RadPaneGroup - grid). the first grid is used to list all of the document/file that can or being edited and its document is showed in the first radpane. the second grid is used to list all of the document or file that exist

in the user folder documents (docx, pdf, jpg etc), and if the user click one of its file, the file is opened in the second radpane. So thats the short stories.

 

now my concern is to the RichTextBox control (that show inside the radpane) used to view or edit the docx file, when i open the file,it is always showed in the most left side of the page (so is the vertical scrollbar), somehow its not so nice to look in the first impression, i had try to custom the decrease the scale factor but it still not so nice in the user eyes. So i want the document showed in the beginning of the text (like when we open document in MS Word, its always viewed in the beginning or the first text right ?), is it possible, please help me.

 

thanks in advance.

Boby
Telerik team
 answered on 26 Jul 2017
1 answer
162 views

Hello,

In Matlab, 'plot' displays a graph that has many built in features like zoom in\out in the toolbar.  

Is it possible to do it with Telerik's chart ?

If not, in my opinion, this feature should be considered in the future. 

Attached snapshot of the plot's toolbar. 

Thank you,

Zvika 

Martin Ivanov
Telerik team
 answered on 25 Jul 2017
5 answers
360 views

I need to have a stack chart with dynamic stacks based on the data provided. Please check the attached image for more details. I've found only to have fixed number of stacks in the following examples/forum posts

http://docs.telerik.com/devtools/wpf/controls/radchart/how-to/howto-select-whole-stack-of-bars-using-the-interactivity-effects

How to do this.

 

Martin Ivanov
Telerik team
 answered on 25 Jul 2017
1 answer
525 views

I want to know how the context menu is being opened in "Opening" event of it.

Usually there are two ways to open it, One is by right clicking other is by Hitting on key.Apps' on keyboard.

This need is because based on way of opening the context menu changes my menu items. 

 

 
<telerik:RadTreeListView x:Name="RadTreeListView1"                          IsSynchronizedWithCurrentItem="True"                         IsReadOnly="True"                         ItemsSource="{Binding Folders}"                         Width="600"                                                                        MinHeight="300" SelectedItem="{Binding SelectedItem}"                         Height="550"                         CanUserFreezeColumns="False"                         RowIndicatorVisibility="Collapsed"                          SelectionMode="Extended"                          ColumnWidth="*" local:MySelectedItemsBindingBehavior.SelectedItems="{Binding SelectedItemCollection}">             <telerik:EventToCommandBehavior.EventBindings>                 <telerik:EventBinding EventName="SelectionChanging"                                Command="{Binding SelectionChangedCommand}"                                PassEventArgsToCommand="True"/>                 <telerik:EventBinding EventName="MouseRightButtonDown" Command="{Binding testingtesting}"                               PassEventArgsToCommand="True"/>                 <telerik:EventBinding EventName="KeyDown" Command="{Binding KeyDownCmd}"                               PassEventArgsToCommand="True"/>             </telerik:EventToCommandBehavior.EventBindings>             <telerik:RadContextMenu.ContextMenu >                 <telerik:RadContextMenu x:Name="GridContextMenu" ItemsSource="{Binding ContextMenuSelectedItems}">                     <telerik:EventToCommandBehavior.EventBindings>                         <telerik:EventBinding EventName="Opening"                                Command="{Binding ContextButtonClick}"                                PassEventArgsToCommand="True"/>                     </telerik:EventToCommandBehavior.EventBindings>                 </telerik:RadContextMenu>             </telerik:RadContextMenu.ContextMenu>         </telerik:RadTreeListView>
 

 

Event args for my "ContextButtonClick" command does not have any information about how it is being opened.

Having validation check of "KeyBoard.IsDown(Key.Apps) or KeyBoard.IsUp(Key.Apps)" is also not solving because, after releasing the "apps" button only context menu will start opening, so at point checking the stat of "Apps" button doesn't give us confident results.

 

 

Any help in this regards is much appreciated. 

 

 

Martin Ivanov
Telerik team
 answered on 25 Jul 2017
2 answers
129 views
Is is possible to control the placement of the radial menu item inside the radial menu? We would like to be able to create an item but not have it take the first available slot. 
Martin Ivanov
Telerik team
 answered on 24 Jul 2017
1 answer
250 views

Hi,

I'im trying to create a row style for a specific need.

I was starting from a sample found on this forum called "custom row layout"

What i want is to be able to use the search panel and then show highlight.

here is the xaml code :

<Window
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:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
x:Class="_42060_CustomRowLayout.MainWindow"
x:Name="Window"
Title="MainWindow"
Width="640" Height="480">
<Window.Resources>
<Style x:Key="MyCustomRowStyle" TargetType="{x:Type telerik:GridViewRow}">
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type telerik:GridViewRow}">
<Border x:Name="rowsContainer" Background="#FF525252" Padding="8,8,8,0">
                    <Border Background="Transparent" x:Name="selectedRow"
                        BorderThickness="1" BorderBrush="#FF000000">
  
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition />
                                <RowDefinition />                                
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
  
                            <TextBlock Text="Code:"
                                       Grid.Column="0" Grid.Row="0"
                                       VerticalAlignment="Top" HorizontalAlignment="Left" 
                                       Foreground="White" FontWeight="Bold" Margin="0,15,15,0" />
  
                            <telerik:HighlightTextBlock Text="{Binding CD}"
                                       Grid.Column="1" Grid.Row="0"
                                       VerticalAlignment="Top" HorizontalAlignment="Left"
                                       Foreground="White"  Margin="0,15,15,0" />
                              
                            <TextBlock Text="Description:"
                                       Grid.Column="0" Grid.Row="1"
                                       VerticalAlignment="Top" HorizontalAlignment="Left" 
                                       Foreground="White" FontWeight="Bold" Margin="0,15,15,0" />
  
                            <TextBlock Text="{Binding DESC}"  
                                       Grid.Column="1" Grid.Row="1"
                                       VerticalAlignment="Top" HorizontalAlignment="Left"
                                       Foreground="White"  Margin="0,15,15,0" />
                              
                            <TextBlock Text="Enabled:"
                                       Grid.Column="0" Grid.Row="2"
                                       VerticalAlignment="Top" HorizontalAlignment="Left" 
                                       Foreground="White" FontWeight="Bold" Margin="0,15,15,0" />
  
  
                            <TextBlock Text="{Binding ENABLED}"
                                       Grid.Column="1" Grid.Row="2"
                                       VerticalAlignment="Top" HorizontalAlignment="Left"
                                       Foreground="White"  Margin="0,15,15,0" />
  
                        </Grid>
                    </Border>
                </Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Background" Value="White"/>
<Setter Property="BorderBrush" Value="#FFCBCBCB"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
            
</Style>
</Window.Resources>

<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource SampleDataSource}}">
<telerik:RadGridView Margin="293,8,8,8" AutoGenerateColumns="False" RowStyle="{DynamicResource MyCustomRowStyle}" DataContext="{Binding SelectedItems, ElementName=radGridView}" ItemsSource="{Binding}" ShowSearchPanel="True"/>
        <telerik:RadGridView x:Name="radGridView" HorizontalAlignment="Left" Margin="0,8" ItemsSource="{Binding Collection}" Width="289" AutoGenerateColumns="False" ShowSearchPanel="True">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Artist}"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Year}"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>
</Window>

 

could you help me ?

regards,

Alex

 

 

 

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Jul 2017
1 answer
119 views

Hallo,

I have the following situation:

- GridView with GridViewSelectColumn

- GridView ItemsSource bound with VirtualQueryableCollectionView

- GridViewRow is not always selectable (via IsEnabled), depending on the bound object
                        <Style TargetType="telerik:GridViewRow" BasedOn="{StaticResource GridViewRowStyle}">
                            <Setter Property="IsEnabled" Value="{Binding IsSelectable, Mode=OneWay}" />
                        </Style>

 

SelectAll is working properly, but only for the visual items.

Good: When triggering SelectAll, the visible GridViewRows which have IsEnabled = false, are not selected.

Bad: When triggering SelectAll, the not yet visualized GridViewRows will be selected once I scroll down in the list, thus ignoring the IsEnabled property on the gridviewrow.

 

Is there a way to fix this or am I missing something?

Thanks for your response!

Best regards,

Ben

Ivan Ivanov
Telerik team
 answered on 24 Jul 2017
17 answers
470 views

I have an issue in the gridview with the rowdetails.

 

I'm using the grid to show hierarchical data but at a certain point the rowdetails stop expanding although i have still have a gridview left with no data in it.

Why is this happening and how can i solve this so i expands and activates the scrollbars when i reaches the bottom of the grid?

JIG
Top achievements
Rank 1
 answered on 24 Jul 2017
1 answer
119 views

I am trying to display the values used for the RadHeatMap as labels in the table but somehow I cannot get it to work. The version of Telerik which is used is 2015.3.930.45 (which is 2015 Q3 so it should include the new labeling functionality which was introduced in 2015 Q2).

I have looked at the relevant example in the demo application (version R2 2017) but that code does not work in 2015 Q3).

What could be the issue here? Thanks in advance!

Douwe
Top achievements
Rank 1
 answered on 24 Jul 2017
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?