Telerik Forums
UI for WPF Forum
15 answers
443 views
Hi,

I am currently evaluating the Q2 Release for WPF and Silverlight.

The Silverlight Version contains the "RadEditor" Controls. I like the use the RadEdit in a WPF Application.

I referenced the Telerik.Windows.Controls.Editor assembly and here the problems start, the assembly seem to be reference an old version of Telerik.Window.Controls (Version 2009.1.424.1020). The Current Version is 2009.2.701.35.

Is there a way of using the RadEditor within an WPF Application, or is this currently not supported?
Iva Toteva
Telerik team
 answered on 09 Nov 2011
2 answers
206 views
I want to assign a keyboard shortcut for direct and easy navigation to a specific tab item (just like in old days, MS provided a mechanism to Captionized the UI item with &) and I do know the WPF has an alternative to that (ampersand) form Windows Forms world.. but for some reason, renaming Header elements of my tabitem with _ (underscore) does not yield anything!

 

 

 

<telerik:RadTabItem Header="_Main" />

 

<telerik:RadTabItem Header="_Customer" />

 

<telerik:RadTabItem Header="_Employee" />

What's the secret behind this? :-) Please reply ASAP. We are looking into how flexible the tool is to support quick keyboard navigations..

Cheers

 

Kam
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
72 views

Good day
im using Rad 2010 Q2

 

<telerik:RadTabItem.Header>
                                  <StackPanel FlowDirection="LeftToRight" Orientation="Horizontal">
                                      <Image Source="/Images/b-blue.png"
                           Height="16" Width="16" />
                                      <TextBlock Text="Case" Margin="5,0,0,0" />
                                  </StackPanel>
                              </telerik:RadTabItem.Header>

 

this code is working fine showing Icon + header
> But without save/loadlayout !
 first case :        when loading layout and it has been saved before code implemented it shows no Image
second case :   when save the new layout and trying to load it , it shows System.Windows....  instead of both (header name & image)
(raddocking flow direction is left to right and saving/loading layout is working fine before the use of header image)

help ! :) 

Thanks in advance ,sam

 

 

 

Boyan
Telerik team
 answered on 09 Nov 2011
12 answers
293 views
Probably a really simple one this, but I've changed the orientation of the day view to horizontal. I would now like to do the same with the resource (grouping) text. Each row is rather high, I'd like the text to read horizontally instead.

Thanks,

Dan
Daniel
Top achievements
Rank 1
 answered on 09 Nov 2011
2 answers
130 views
Hello,

I need to change the opacity of a single appointment control on the fly, but have no idea how to access the controls. I tried to get an IEnumataion by calling

MainScheduleView.ChildrenOfType<Telerik.Windows.Controls.AppointmentsControl>();


but there is no AppointmentsControl class in Telerik.Windows.Controls - only AppointmenItem but when I calling, the list is empty.
Any idea?
John
Top achievements
Rank 1
 answered on 09 Nov 2011
3 answers
190 views
there is any way to define different size for each item in the radTileView?
thanks
Zarko
Telerik team
 answered on 09 Nov 2011
2 answers
717 views
Hi,

In our project we are using the RadGridView to display the contents of a conceptual folder: the contents of a folder can be either other folders / and / or items.
The grid contains an ObservableCollection contains objects of two types: "Folder" and "Item", which have no common base type, but both have the property called "Name" returning a string.
When the grid shows listitems which are of the same type, eg. only folders, or only items, sorting by the "Name" column (bound to the name property), works just fine.

Our problem:
When the grid shows listitems which are of the mixed types, eg. folders and items, sorting by the "Name" column (bound to the name property), only sorts the first time, but from there on does nothing.

The mentioned column is defined within the RadGridView as follows:

<telGrid:GridViewDataColumn Width="300" Header="Name" DataMemberBinding="{Binding Name}" CellStyleSelector="{StaticResource ColumnNameCellStyleSelector}">

the collection holding both types of folder and items is defined on our model as follows:

ObservableCollection<object> _items = new ObservableCollection<object>();

We are leaning towards implementing custom sorting, but it feels like a workaround to do such, so our question is:
What would be your recommended approach to support sorting of mixed types in the Observable collection?

Further details:

WPF 4.5
Windows 7 64x
Telerik RadControls for WPF v2011.2.1004.40 / Runtime v4.0.30319
Language C#

Awaiting your response and kind regards.
Marc
Top achievements
Rank 1
 answered on 09 Nov 2011
1 answer
125 views
Is there anyway from which i can change the line style to dotted... i want to do this for particular line like 9 lines will be dotted and one will be normal... I've been go through the help but found no solution... although i read somewhere to change bar graph item style but its not working for line series....

PS i want to set individual itemstyle for each line
Sia
Telerik team
 answered on 09 Nov 2011
1 answer
122 views

Hi!

 

My english is not as good as I would like but I expect to be clear.

 

We have been testing testing telerik charts with Telerik 2011.2.920.35. We have detected performance issues when working with many data series in live time.

 

Our worst scenario in one RadChart is:

  • Datetime XAxis
  • 15 Line series (we prefer Spline series but its performance ir really poor)
  • 15 YAxis
  • 60 Scatter series (each line serie needs 4 scatter serie to represent related data). Number of DataPoints depends on data
  • Annotations (Number depends on data)
  • Custom tooltip for each datapoint of each data serie
  • Show data of 1 hour (but can be more)
  • First load of 15 lines * 1 hour * 60 minutes * 6 periods of 10 seconds produces 5400 datapoints
  • Data refresh each 10 seconds

 

We have made a simple test project and we have seen performance issues (just resizing the window you can see the problem):

  • Spline series locks the application
  • Adding scatter series makes the application go slower
  • Adding line series makes the application go slower

 

We have detect that you can not use AddRange to DataSerie twice. The first time it runs ok but the second time it doesn’t render the serie as it should.

 

We have seen Performance Tips and Tricks for RadChart (http://www.telerik.com/help/silverlight/radchart-performance-tips-and-tricks.html) but they are not enough for our scenario.

 

We have seen that in Q3 beta you have been working on Charts (http://blogs.telerik.com/blogs/posts/11-10-21/telerik-xaml-controls-q3-2011-beta-introduces-new-and-empowered-chartingkit.aspx). We haven’t been able to test it yet. Are this problems solved?

 

Is our scenario requirements more than Telerik RadChart can support?

 

Our test code is:

MainWindow.xaml

 

<Window x:Class="TestDataSeries.MainWindow"

        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 

        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting" 

        xmlns:Charting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting" Title="MainWindow" Height="350" Width="525">

    <Grid>

        

        <Grid.RowDefinitions>

            <RowDefinition Height="*" />

            <RowDefinition Height="Auto" />

            <RowDefinition Height="Auto" />

            <RowDefinition Height="Auto" />

        </Grid.RowDefinitions>

        

        <telerik:RadChart x:Name="VariableChart"

                              AxisElementBrush="White" AxisForeground="White" Foreground="White" 

                              Background="Black">

            <telerik:RadChart.DefaultView>

                <Charting:ChartDefaultView>

                    <Charting:ChartDefaultView.ChartArea>

                        <Charting:ChartArea Background="Black">

                        </Charting:ChartArea>

                    </Charting:ChartDefaultView.ChartArea>

                </Charting:ChartDefaultView>

            </telerik:RadChart.DefaultView>

        </telerik:RadChart>

 

        <Button Content="New Line serie" Click="CreateNewLine" Grid.Row="1"></Button>

        <Button Content="New Spliline serie" Click="CreateNewSpliline" Grid.Row="2"></Button>

        <Button Content="New Scatter serie" Click="CreateNewScatter" Grid.Row="3"></Button>

 

    </Grid>

</Window>

 

MainWindow.xaml.cs

 

using System;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Media;
using System.Windows.Threading;
using Telerik.Windows.Controls.Charting;
 
namespace TestDataSeries
{
    /// <summary> 
    /// Interaction logic for MainWindow.xaml 
    /// </summary> 
    public partial class MainWindow : Window 
    {
 
        private Random _random = new Random();
        private DateTime _beginDate;
 
        public MainWindow()
        {
            InitializeComponent();
            _beginDate = DateTime.Now.AddHours(-1);
            SetUpRadChart();
            SetUpXAxis();
            SetUpTimer();
        }
 
        public DispatcherTimer Timer { getset; }
        
        private void SetUpRadChart()
        {
            VariableChart.DefaultView.ChartTitle.Visibility = Visibility.Collapsed;
            VariableChart.DefaultView.ChartLegend.Visibility = Visibility.Collapsed;
            VariableChart.DefaultView.ChartArea.IsNoDataMessageEnabled = false;
            VariableChart.DefaultView.ChartArea.NoDataString = "No data";
            VariableChart.DefaultView.ChartArea.EnableAnimations = false;
            VariableChart.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode = ScrollMode.None;
            VariableChart.DefaultView.ChartArea.ZoomScrollSettingsY.ScrollMode = ScrollMode.None;
            VariableChart.DefaultView.ChartArea.AxisY.Visibility = Visibility.Collapsed;
            VariableChart.DefaultView.ChartArea.AxisY.StripLinesVisibility = Visibility.Collapsed;
        }
 
        private void SetUpTimer()
        {
            Timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(10) };
            Timer.Tick += Timer1Tick;
        }
 
        private void Timer1Tick(object sender, EventArgs e)
        {
            foreach (var dataSerie in VariableChart.DefaultView.ChartArea.DataSeries)
            {
                //var pointList = new ObservableCollection<DataPoint>(); 
                //pointList.Add(new DataPoint(DateTime.Now.ToOADate(), _random.NextDouble())); 
                //This code doesn't run as expected!!!!!!!!!!!!!!! It appears to be the same as dataSerie.Add but it is not 
                //dataSerie.AddRange(pointList); 
                dataSerie.Add(new DataPoint(DateTime.Now.ToOADate(), _random.NextDouble()));
            }
        }
 
        private void SetUpXAxis()
        {
            VariableChart.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "#VAL{yyyy-MM-dd HH:mm:ss}";
            VariableChart.DefaultView.ChartArea.AxisX.LabelRotationAngle = 270;
            VariableChart.DefaultView.ChartArea.AxisX.Title = "Time";
            VariableChart.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Normal;
            VariableChart.DefaultView.ChartArea.AxisX.AutoRange = true;
            VariableChart.DefaultView.ChartArea.AxisX.IsDateTime = true;
        }
 
        private void CreateNewLine(object sender, RoutedEventArgs e)
        {
            CreateDataSerie();
            if (VariableChart.DefaultView.ChartArea.DataSeries != null && VariableChart.DefaultView.ChartArea.DataSeries.Count == 1)
                Timer.Start();
                
        }
 
        public void CreateDataSerie()
        {
            DataSeries dataSerie = new DataSeries();
            dataSerie.Definition = new LineSeriesDefinition();
            (dataSerie.Definition as LineSeriesDefinition).ShowPointMarks = false;
            (dataSerie.Definition as LineSeriesDefinition).Appearance.PointMark.Shape = MarkerShape.Circle;
            (dataSerie.Definition as LineSeriesDefinition).Appearance.PointMark.Fill = Brushes.Orange;
            (dataSerie.Definition as LineSeriesDefinition).ShowItemLabels = false;
            (dataSerie.Definition as LineSeriesDefinition).ShowItemToolTips = false;
 
            var pointList = new ObservableCollection<DataPoint>();
 
            var timerange = (DateTime.Now - _beginDate).TotalSeconds;
            var periods = timerange/10;
            for (int i = 0; i < periods; i++)
            {
                pointList.Add(new DataPoint(_beginDate.AddSeconds(i * 10).ToOADate(), _random.NextDouble()));
            }
            dataSerie.AddRange(pointList);
 
            VariableChart.DefaultView.ChartArea.DataSeries.Add(dataSerie);
        }
 
        private void CreateNewScatter(object sender, RoutedEventArgs e)
        {
            CreateScatterDataSerie();
        }
 
        public void CreateScatterDataSerie()
        {
            DataSeries dataSerie = new DataSeries();
            dataSerie.Definition = new ScatterSeriesDefinition();
            (dataSerie.Definition as ScatterSeriesDefinition).Appearance.PointMark.Shape = MarkerShape.Circle;
            (dataSerie.Definition as ScatterSeriesDefinition).Appearance.PointMark.Fill = Brushes.Orange;
            (dataSerie.Definition as ScatterSeriesDefinition).ShowItemLabels = false;
            (dataSerie.Definition as ScatterSeriesDefinition).ShowItemToolTips = false;
 
            var pointList = new ObservableCollection<DataPoint>();
 
            var timerange = (DateTime.Now - _beginDate).TotalSeconds;
            var periods = timerange / 10;
            for (int i = 0; i < periods; i++)
            {
                pointList.Add(new DataPoint(_beginDate.AddSeconds(i * 10).ToOADate(), _random.NextDouble()));
            }
            dataSerie.AddRange(pointList);
 
            VariableChart.DefaultView.ChartArea.DataSeries.Add(dataSerie);
        }
 
        private void CreateNewSpliline(object sender, RoutedEventArgs e)
        {
            CreateSplineDataSerie();
        }
        public void CreateSplineDataSerie()
        {
            DataSeries dataSerie = new DataSeries();
            dataSerie.Definition = new SplineSeriesDefinition();
            (dataSerie.Definition as SplineSeriesDefinition).ShowPointMarks = false;
            (dataSerie.Definition as SplineSeriesDefinition).Appearance.PointMark.Shape = MarkerShape.Circle;
            (dataSerie.Definition as SplineSeriesDefinition).Appearance.PointMark.Fill = Brushes.Orange;
            (dataSerie.Definition as SplineSeriesDefinition).ShowItemLabels = false;
            (dataSerie.Definition as SplineSeriesDefinition).ShowItemToolTips = false;
 
            var pointList = new ObservableCollection<DataPoint>();
 
            var timerange = (DateTime.Now - _beginDate).TotalSeconds;
            var periods = timerange / 10;
            for (int i = 0; i < periods; i++)
            {
                pointList.Add(new DataPoint(_beginDate.AddSeconds(i * 10).ToOADate(), _random.NextDouble()));
            }
            dataSerie.AddRange(pointList);
 
            VariableChart.DefaultView.ChartArea.DataSeries.Add(dataSerie);
        }
    }
}

 

 

Thank you!

Yavor
Telerik team
 answered on 09 Nov 2011
1 answer
529 views
I am trying to use the RadRichTextBox control. I know this error has a posting in the forums but I need to know what is the minimum version of the telerik.windows.control, telerik.windows.data, and telerik.windows.documents for .net 4.0--as we are using the .net 4 version of system.componentmodel.composition for our project.

I am using control version 2011.2.920.35, data version 2011.2.920.35, documents version 2011.2.920.35 and the componentmodel is 4.0.0.0. I got this info from properties for each file in my project.
Iva Toteva
Telerik team
 answered on 09 Nov 2011
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?