Telerik Forums
UI for WPF Forum
1 answer
139 views

Hi,

I'm using the .dll  Telerik.Windows.Controls.Charting and in order to use implicit styles I should refer to the corresponding xaml file. I see that the telerik.windows.controls.chart.xaml exists But Not telerik.windows.controls.charting.xaml  => this results in having the charts not in the correct style.

Erdem
Top achievements
Rank 1
 answered on 08 Jun 2014
2 answers
338 views
I have a validators on my cotrols, when I am switching tabs validation errors disapear for all controls.

 <TextBox Text="{Binding SelectedJob.Well.Formation,ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" />


Can you suggest a fix for this problem?
Jawahar
Top achievements
Rank 1
 answered on 06 Jun 2014
2 answers
120 views
Hello,

We have to develop a multi touch application for a large touch screen (3.50 meters).
This application will allow the users to edit (at the same time) business process diagram, mainly through flowchart with vertical & horizontal swimlanes.
We have planned to use Telerik UP for WPF, but we have first to be shure that this lib will cover our requirements:
 - Multi-touch support
 - Easy way for creating flowchart: I see a demo, but it seems that the swimlanes are not really integrated in Telerik: we have to program specific shape containers
 - Connect shapes together with arrows by using a gesture

Could you please provide me with some advices ?
Thanks a lot

Pascal
Pascal
Top achievements
Rank 1
 answered on 06 Jun 2014
2 answers
66 views
With the new DragDropManager (instead of RadDragAndDropManager), how to get the PropertyGridField when mouse is dragging over it?
De
Top achievements
Rank 1
 answered on 06 Jun 2014
7 answers
394 views
I have a problem where setting the MaximumTicks on a DateTimeContinousAxis causes the Bars on a BarSeries to be drawn incorrectly for large numbers of bars. Below is an example showing the problem.

If you run the example, you can see that initially the bars correspond to the line series plotting the same data (ignoring the aliasing effect of too many bars for the number of pixels to display them on). However, you have way too many labels to display on the X axis, and a solid grey background due to the number of grid lines.

Now, use the box at the bottom to change the value of MaximumTicks (note that this is the first time it's being set). Now the bars do not appear to correspond to the line series. (My theory is that they're being drawn way too wide.) The labels and grid lines now look good, however.

Now drag the right zoom handle on the horizontal axis as far left as possible (maximum zoom at the start of the series). You see similar effects to the zoomed out view. 

Now, again use the box at the bottom to change the value of MaximumTicks and the display goes back to what is expected. Now you can zoom back out, and you still have the expected view where the bars match the line.

Is there another way to filter down the number of labels and grid lines and get the bars to draw at a reasonable width? I tried GapLength, but this didn't resolve the problem (0.95 looks much better, but they're still overlapping a bit, 0.5 looks the same as without).

Thanks,
Louis

XAML:
<Window x:Class="BarDensity.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:local="clr-namespace:BarDensity"
                Title="MainWindow" Height="750" Width="1000">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <telerik:RadCartesianChart Margin="5" x:Name="PropertyChart">
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Both" />
            </telerik:RadCartesianChart.Behaviors>
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
            </telerik:RadCartesianChart.Grid>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeContinuousAxis LabelFitMode="Rotate" LabelFormat="yyyy-MMM" GapLength="0.5"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis />
            </telerik:RadCartesianChart.VerticalAxis>
 
            <telerik:RadCartesianChart.Series>
                <telerik:BarSeries CategoryBinding="Date"
                       ValueBinding="Value"
                       ItemsSource="{Binding Path=Series1}">
                    <telerik:BarSeries.PointTemplate>
                        <DataTemplate>
                            <Rectangle Fill="Blue" />
                        </DataTemplate>
                    </telerik:BarSeries.PointTemplate>
                </telerik:BarSeries>
                <telerik:LineSeries CategoryBinding="Date"
                       ValueBinding="Value"
                       ItemsSource="{Binding Path=Series1}"
                       Stroke="Red">
                </telerik:LineSeries>
            </telerik:RadCartesianChart.Series>
        </telerik:RadCartesianChart>
        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <Label>MaximumTicks:</Label>
            <telerik:RadNumericUpDown IsEditable="True" Minimum="10" Maximum="50"
                                      Value="{Binding Path=MaximumTicks}"/>
        </StackPanel>
    </Grid>
</Window>

Code Behind:
namespace BarDensity
{
    public class MyPoint
    {
        public DateTime Date { get; set; }
        public Double Value { get; set; }
    }
    public partial class MainWindow : Window
    {
        private int _MaximumTicks = 20;
        public List<MyPoint> Series1 { get; private set; }
        public int MaximumTicks
        {
            get { return _MaximumTicks; }
            set
            {
                if (_MaximumTicks != value)
                {
                    _MaximumTicks = value;
                    DateTimeContinuousAxis dateAxis = PropertyChart.HorizontalAxis as DateTimeContinuousAxis;
                    if (dateAxis != null)
                        dateAxis.MaximumTicks = _MaximumTicks;
                }
            }
        }
        public MainWindow()
        {
            Series1 = new List<MyPoint>();
            DateTime startDate = new DateTime(2014, 1, 1);
            for (int i = 0; i < 1000; i++)
                Series1.Add(new MyPoint() { Date = startDate.AddMonths(i),
                    Value = (Math.Sin(i / 100.0)) * 500 });
            InitializeComponent();
            DataContext = this;
        }
    }
}

Petar Marchev
Telerik team
 answered on 06 Jun 2014
1 answer
142 views
Hi There,

I look for help here, I have a Radpane and there are 3 RadButton and RadRadioButton on pane bar, they work when Radpane is docked (default). But when I undock (e.g floating) the radpane, click the button does not work, it does not come into command (MyAddCommand, ToggleWindowLayout) code in c#, Xaml attached below, thanks in advance.

    <telerik:RadPane x:Name="myRadPane"
              CanFloat="True"
              CanUserClose="False"
              CanUserPin="True"
              CanDockInDocumentHost="False"       
              DataContext="{Binding ElementName=myDocker, Path=DataContext}"
              IsSelected="...">

            <telerik:RadPane.Header>
              <StackPanel Orientation="Horizontal">
        ...
          </StackPanel>
            </telerik:RadPane.Header>

            <telerik:RadPane.TitleTemplate>
                <DataTemplate>
                  <Grid>
                    <Grid.ColumnDefinitions>
                      <ColumnDefinition Width="Auto" />
                      <ColumnDefinition Width="*"/>
                      <ColumnDefinition Width="40"/>
                  </Grid.ColumnDefinitions>

                  <telerik:RadButton
                     Grid.Column="1"
                     Width="18"
                     Height="18"
                     Margin="0,0,5,0"
                     HorizontalAlignment="Right"
                     Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadTabControl}}, Path=DataContext.MyAddCommand}"
                     CommandParameter="{Binding}"
                     ToolTip="Add to graph">
                    <Grid>
                      <Image Source="/Images/Add.ico"
                               HorizontalAlignment="Stretch"
                               VerticalAlignment="Stretch"/>
                    </Grid>
                  </telerik:RadButton>

                  <Grid Grid.Column="2" >
                    <Grid.ColumnDefinitions>
                      <ColumnDefinition Width="*"/>
                      <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <telerik:RadRadioButton
                      Grid.Column="0"
                      Width="18"
                      Height="18"
                      IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadTabControl}}, Path=DataContext.SplitterHorizontal}"
                      HorizontalAlignment="Stretch"
                      HorizontalContentAlignment="Stretch"
                      Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadTabControl}}, Path=DataContext.ToggleWindowLayout}"
                      CommandParameter="H">
                      <Grid>
                        <Image Source="/Images/HorizontalLayout.ico"
                               HorizontalAlignment="Stretch"
                               VerticalAlignment="Stretch"/>
                      </Grid>
                    </telerik:RadRadioButton >
                    <telerik:RadRadioButton
                      Grid.Column="1"
                      Width="18"
                      Height="18"
                      IsChecked="{Binding Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadTabControl}}, Path=DataContext.SplitterVertical}"
                      HorizontalAlignment="Stretch"
                      HorizontalContentAlignment="Stretch"
                      Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadTabControl}}, Path=DataContext.ToggleWindowLayout}"
                      CommandParameter="V">
                      <Grid>
                        <Image Source="/Images/VerticalLayout.ico"
                               HorizontalAlignment="Stretch"
                               VerticalAlignment="Stretch"/>
                      </Grid>
                    </telerik:RadRadioButton >
                  </Grid>
                </Grid>
                </DataTemplate>
              </telerik:RadPane.TitleTemplate>

         ...                
            </Grid>
          </telerik:RadPane>

Thanks
Felix
Kiril Vandov
Telerik team
 answered on 06 Jun 2014
3 answers
142 views
Hi Telerik,

I'm successfully using the Gantt chart for creating a planning tool.
What I would like to use now is the timeline. I've used databinding for binding my TasksCollection to the timeline's itemsource and this works, as long as my GanttTasks have no children. The children are not shown in the timeline.

IS there a way to solve this, so that also the children get plotted on the TimeLine?

Kind regards
Tsvetie
Telerik team
 answered on 06 Jun 2014
5 answers
158 views
Hi,

I have just started using the RadScheduleView (VB.net) following the database example in the "xaml-skd-master".

Everything seems to be working ok except for two problems, which both exist in the example project and my project.

1. The TimeMarker doesn't seem to display any brush colours, although as far as I can see they do exist at TimeMarker.TimeMarkerBrushName. Please see attached screenshot

2. The low and high importance option don't seem to be saving and displaying when selecting in the dialogue (and clicking ok).

I have run both the VB example and the C# example and the C# example seems to run fine.

Other examples in the sdk seem to work however these don't use a database as a source.

Looking at the TimeMarker.cs and TimeMarker.vb files, the code looks quite different, with references to TimeMarketBrush not appearing in the TimeMarker.vb file. Is the VB example for an older version? 

Could someone help me get these features working.

Regards,

 

Shaun



Yana
Telerik team
 answered on 06 Jun 2014
1 answer
142 views
Hello,
if the TabControl contains a single tab and this tab is collaped, the content of the tab is displayed, but not the header.
Patrick
Martin Ivanov
Telerik team
 answered on 06 Jun 2014
3 answers
196 views
Hi,
I want to make my category as a hyperlink. I am adding category programmatically.

barChart.DataPoints.Add(new CategoricalDataPoint() { Value = item.StatusCount, Category = item.Label });

Please help for same.

Thank You,
Petar Marchev
Telerik team
 answered on 06 Jun 2014
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?