Telerik Forums
UI for WPF Forum
3 answers
191 views
We have a grid and before I modified the Item and InstanceItem template, the header font was white when using the Expression_Dark theme. Now it is black. If you look at your example: http://demos.telerik.com/silverlight/#Timeline/Theming, the text changes to white to provide contrast with the dark background.

However, the back text remains present.

Paul
Evgenia
Telerik team
 answered on 09 Jun 2014
3 answers
152 views
Hello,

We have to develop a multi touch application for a large touch screen (3.50 meters).
In order to simplify the use, we would like to use complex gestures, based on several fingers / two hands instead of menus.
Is there a support for this kind of requirements in the Telerik solution, or a way to interface Telerik with GestureWorks library ?
Thanks a lot for your answer

Pascal
Nick
Telerik team
 answered on 09 Jun 2014
29 answers
891 views
I know that this has been asked in the past and that the official answer is that ItemsSource is not supported in RadPanelGroup. But this feature is a must for us and if it is not provided we will need to implement a workaround. Concretely, we need to be able to bind ItemsSource to a collection of model objects and use DataTemplates to transform them into RadPanes or a suitable class.

1. Is this feature planned for future releases of the Telerik controls?
2. If not, is there any code, either released or not, that can be used as a workaround ? One could imagine a PaneFactory that would track INotifycollectionChanges in a collection and feed the Items property of a RadPaneGroup.
3. Finally, if there is no such support code, we will have to implement it ourselves. Any gotchas that we should be aware of before starting to work on it?

Thanks in advance. I would appreciate if you could provide some answers as soon as possible.
Chris
Top achievements
Rank 1
 answered on 08 Jun 2014
1 answer
121 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
321 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
108 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
51 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
377 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
131 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
122 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?