Telerik Forums
UI for WPF Forum
3 answers
143 views

As the title describes, I have a user control with a RadDocking element, then a RadDocking.DocumentHost.

Any element inside the DocumentHost is not selectable in the designer, also the outline view only shows elements until the RadDocking element not the DocumentHost inside it.

If I don't use the DocumentHost  and place RadSplitContainer directly in the RadDocking selecting and outline is working as expected.

 

I use the last version I have access to: Version 2018.1.430

 

Vladimir Stoyanov
Telerik team
 answered on 28 Oct 2020
9 answers
361 views

Hello

How can I implement the following behaviour?

When a user clicks the header of a radpane with the mouse wheel then the radpane should close.

(same behaviour when you click a tabheader in Internet Explorer)

Thanks!

Victor
Top achievements
Rank 1
 answered on 27 Oct 2020
3 answers
3.9K+ views

Hi

Where can i change the text (content) color of a RadNavigationViewItem?

 

I figured out how to change color of everything else except the text color.

I tried to set foreground color RadNavigationView and RadNavigationViewItem

and i cannot see a style i could set to fit my needs.

 

Please let me know where i can set the color or if i am just blind :)

Thank you in advanced!

 

Cheers,

Mats

Vicky
Telerik team
 answered on 23 Oct 2020
2 answers
378 views

I simply dragged the RadComboBox control from the Toolbox under "Telerik UI for WPF - Input 2020 R3" and dropped it into the designer.  This created the entry:

<telerik:RadComboBox/>

I did nothing else, build and execute project and when this Window comes to load I get a runtime error:

System.Windows.Markup.XamlParseException
  HResult=0x80131501
  Message=Could not load file or assembly 'Telerik.Windows.Controls, Version=2020.3.1020.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)
  Source=PresentationFramework
  StackTrace:
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at TreeScapes.MainWindow.InitializeComponent() in D:\Visual Studio Projects\TreeScapes\MainWindow.xaml:line 1

Inner Exception 1:
FileLoadException: Could not load file or assembly 'Telerik.Windows.Controls, Version=2020.3.1020.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)

If I remove the <telerik:RadComboBox/> line, execution works.

I must admit, my success rate at using Telerik UI for WPF is pretty low, I've spent many hours researching really basic problems and hoops to jump thru to get things to "sorta" work.  I don't know what the object is with Telerik UI for WPF, but as it stands right now, it's NOT improving productivity, just the opposite.  

I'm at the point where I'll just go back to using all the default VS 2019 Microsoft controls because they just work.  My Telerik renewal is coming up in Nov and I honestly can't justify renewing.

Rob.

Martin Ivanov
Telerik team
 answered on 23 Oct 2020
5 answers
171 views

Hi,

In the documentation of Shape Tool https://docs.telerik.com/devtools/wpf/controls/radimageeditor/tools/shape-tool it says that: "The Shape Tool provides an options to easily customize your shape – you can choose if the shape will be filled with some color or it will consist only of borders, which color and thickness also depends on your preferences. You could take advantage of the LockRatio property, which will ensure that the proportions of the shape will be always the same when resizing.".

But I don't have these options in my ShapeTool() or in my RectangleShape() object (I execute tool commands by code).

Where can I set a border color and a thickness in rectangle shapes and the same for a custom shape tool by code? (I don't use the option panel displayed on right).

Version of my telerik controls: 2019.2.510.45

 

Thanks in advance for your reply.

Fabien
Top achievements
Rank 1
 answered on 23 Oct 2020
4 answers
704 views

In our project we have updated Telerik UI for WPF to version 2020.2.617.

So, the existing Telerik dlls (NoXaml version) were updated via Nuget Package manager to 2020.2.617 version

However when I have updated the theme xaml files, I got the following errors:

Inner Exception 1:<br>XamlObjectWriterException: 'Provide value on 'System.Windows.StaticResourceExtension' threw an exception.' Line number '100' and line position '12'.<br><br>Inner Exception 2:<br>Exception: Cannot find resource named 'ThemeType'. Resource names are case sensitive.

 

As from the error I can see that `ThemeType` resource is missing and that is why application is crashing at runtime.

After investigating a bit I wasn't able to find this resource inside xaml files, which means that it is probably in some dll which is missing from the project.

 

Will much appreciate for any support!

Dilyan Traykov
Telerik team
 answered on 22 Oct 2020
2 answers
245 views
I'm having problems binding my MVVM ViewModel to the ChartSeriesProvider. It's like it's not a part of the Visual Tree.

<telerik:RadCartesianChart>
             
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.SeriesProvider>
                 
                <telerik:ChartSeriesProvider Source="{Binding Path=CollectionView}">
                    <telerik:ChartSeriesProvider.SeriesDescriptors>
 
                        <telerik:CategoricalSeriesDescriptor ItemsSourcePath="Items"
                                                             ValuePath="Value"
                                                             CategoryPath="Month">
                            <telerik:CategoricalSeriesDescriptor.Style>
                                <Style  TargetType="telerik:LineSeries">
                                </Style>
                            </telerik:CategoricalSeriesDescriptor.Style>
                        </telerik:CategoricalSeriesDescriptor>
                    </telerik:ChartSeriesProvider.SeriesDescriptors>
                     
                </telerik:ChartSeriesProvider>
                 
            </telerik:RadCartesianChart.SeriesProvider>
        </telerik:RadCartesianChart>

and inside the ViewModel that is bound to this view (is its DataContext)

private ICollectionView _collectionView;
public ICollectionView CollectionView
{
    get
    {
        if (this._collectionView == null)
        {
            this._collectionView = CollectionViewSource.GetDefaultView(this.Items);
                using (this._collectionView.DeferRefresh())
                {
                    this._collectionView.SortDescriptions.Clear();
                    this._collectionView.SortDescriptions.Add(new SortDescription("Order", ListSortDirection.Ascending));
                }
        }
        return this._collectionView;
    }
}

Everything else in the View binds ok but I always get no series and according to Snoop

RadChartView Cannot find governing FrameworkElement or FrameworkContentElement for target element
Nitzan
Top achievements
Rank 1
 answered on 22 Oct 2020
2 answers
2.1K+ views

Hi,

How can set text wrapping for the the displayed text of the MultiColumnComboBox control in XAML ?

Regards,
Hans

 

Hans
Top achievements
Rank 1
Veteran
 answered on 21 Oct 2020
7 answers
381 views

Hello

I have a cartesian chart that includes a barchart, which range is fixed and unique, and I have dynamic line series, which are user defined at run time (see attached screenshot).

Each lineseries is bound to a business objects that contains three properties: Color, which will be the color of the series, Code, which is a string that identifies the series, and Coll which is a collactiion of dates + decimals that make the series.

When I add the trackball functionality, I can see the bound values, but I would like to add the Code identifier, as otherwise user cannot tell which is which.

Thanks

Herald

------------------------------------------------------------------

 

<telerik:RadCartesianChart Grid.Row="1" Height="500" VerticalAlignment="Top">
            <telerik:RadCartesianChart.Resources>
                <DataTemplate x:Key="trackBallInfoTemplate">
                    <StackPanel Background="Wheat" Margin="3" Width="100">
                        <StackPanel Orientation="Horizontal">
                            <!--<TextBlock Text="{Binding Code}" FontWeight="Bold" />-->
                            <TextBlock Text="??? - " FontWeight="Bold" />
                            <TextBlock Text="{Binding DataPoint.Value, StringFormat=P2}" />
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </telerik:RadCartesianChart.Resources>
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartSelectionBehavior DataPointSelectionMode="None" />
                <!--<telerik:ChartTooltipBehavior/>-->
                <telerik:ChartTrackBallBehavior />
            </telerik:RadCartesianChart.Behaviors>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeContinuousAxis GapLength="0.9" Visibility="Collapsed" ShowLabels="False" TickThickness="0" PlotMode="OnTicks"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis SmartLabelsMode="None" LabelFormat="P0" LabelStyle="{DynamicResource RagGridViewAxisLabel}"/>
            </telerik:RadCartesianChart.VerticalAxis>

            <telerik:RadCartesianChart.SeriesProvider>
                <telerik:ChartSeriesProvider Source="{Binding LineSeries}">
                    <telerik:ChartSeriesProvider.SeriesDescriptors>
                        <telerik:CategoricalSeriesDescriptor CategoryPath="Date" ValuePath="Value" ItemsSourcePath="Coll">
                            <telerik:CategoricalSeriesDescriptor.Style>
                                <Style TargetType="telerik:LineSeries">            
                                    <Setter Property="StrokeThickness" Value="2" />
                                    <Setter Property="Stroke" Value="{Binding Color, Converter={StaticResource colorToSolidColorBrushValueConverter}}"></Setter>
                                    <Setter Property="TrackBallInfoTemplate" Value="{StaticResource trackBallInfoTemplate}"></Setter>
                                </Style>
                            </telerik:CategoricalSeriesDescriptor.Style>
                        </telerik:CategoricalSeriesDescriptor>
                    </telerik:ChartSeriesProvider.SeriesDescriptors>
                </telerik:ChartSeriesProvider>
            </telerik:RadCartesianChart.SeriesProvider>


            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorXLineDashArray="5 5" MajorYLineDashArray="5 5" MajorLinesVisibility="Y" />
            </telerik:RadCartesianChart.Grid>
            <telerik:RadCartesianChart.Series>
                <telerik:BarSeries CategoryBinding="Date" ValueBinding="Value" ItemsSource="{Binding MainFundChart}" TrackBallInfoTemplate="{StaticResource trackBallInfoTemplate}">
                    <telerik:BarSeries.PointTemplate>
                        <DataTemplate>
                            <Rectangle Width="10" Fill="Green" />
                        </DataTemplate>
                    </telerik:BarSeries.PointTemplate>
                </telerik:BarSeries>
            </telerik:RadCartesianChart.Series>
        </telerik:RadCartesianChart>

--------------------------------------------

 

public class LineSeriesItem
    {
        public string Code { get; set; }
        public ObservableCollection<ChartItem> Coll { get; set; }
        public System.Windows.Media.Color Color { get; set; }
    }

 

public class ChartItem
    {
        public DateTime Date { get; set; }
        public Decimal Value { get; set; }
    }

Herald
Top achievements
Rank 1
Veteran
Iron
 answered on 21 Oct 2020
3 answers
274 views

Hello.

 

I use RadGridView (2018.1.116.45).

I am create columns and set him binding in programm code as 

 

 

column = new GridViewDataColumn
                {
                    ColumnGroupName = args.ColumnDef.ColumnGroupName,
                 
                    DataMemberBinding = new Binding(args.ColumnDef.Member)
                    {
                        Mode = BindingMode.TwoWay,
                        UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
                    },
                    IsReadOnlyBinding = new Binding(args.ColumnDef.IsReadOnlyMember)
                    {
                        Converter = new NullToBooleanConverter {IsInverted = true}
                    },
                   
                    Header = args.ColumnDef.Header,
                    IsVisible = true
                };

If i set cell value from UI all right, but if i set value from code UI not update, only after i select cell and try input value, value which i set erly will be placed in UI cell.

I try update view by programm code as

 var oldCellInfo = MainGrid.CurrentCellInfo;
            var gridViewCellInfo = new GridViewCellInfo(sender, gridViewColumn);
            MainGrid.CurrentCellInfo = gridViewCellInfo;

            MainGrid.CurrentCell?.BeginEdit();
            MainGrid.CurrentCell?.CommitEdit();
            
            MainGrid.CurrentCellInfo = oldCellInfo;
            MainGrid.CurrentCell?.BeginEdit();

            MainGrid.UpdateLayout();

 

But this is not working...

How i can update UI?

 

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Oct 2020
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
PersistenceFramework
DataPager
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?