Telerik Forums
UI for WPF Forum
1 answer
149 views

My company just purchased the full version of the WPF UI. I replaced all the DLLs in the project. I even deleted the references to them and replaced them with fresh references to the new DLLs. I now get the following error.

 

Exception thrown: 'System.Windows.Markup.XamlParseException' in PresentationFramework.dll
Additional information: Initialization of 'Telerik.Windows.Controls.RadGridView' threw an exception.

{"Could not load file or assembly 'Telerik.Windows.Controls.GridView, Version=2016.3.1024.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Telerik.Windows.Controls.GridView, Version=2016.3.1024.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7"}

 

I notice that it's looking for the old version number, not the new one, but I can't find any reference to the old version number anywhere in the project, including in the manifest file that the InnerException mentions.

I asked if we were given any verification code to enter into the DLL, but no one knew anything about one.

Mark
Top achievements
Rank 1
 answered on 26 Jul 2017
1 answer
177 views

Hi,

after the last Telerik update I have some issue with copy (with header) from grid and paste it to Excel.

If the first column doesn't have value, except for the header, when I paste the content to Excel is shifted one row right (see the attachments).

 

The CopyMode is setted to Cells | Header.

 

I opened a ticket with a demo. You can see the issue just copying the grid and paste it on the excel.

 

Thank you

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Jul 2017
2 answers
225 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
385 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
161 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
352 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
518 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
128 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
244 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
115 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
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?