Telerik Forums
UI for WPF Forum
1 answer
113 views
Hi,

I'm encoutering an issue while trying to record a CodedUI Test over a very simple WPF application which looks like this :

<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" x:Class="WpfApplication2.MainWindow"
        Title="MainWindow" Height="350" Width="525">
  <Grid Margin="0,0,2,0">
    <telerik:RadTabControl HorizontalAlignment="Stretch" Margin="14,27,0,10" VerticalAlignment="Stretch">
      <telerik:RadTabItem Header="Tab1" Content="abc"/>
      <telerik:RadTabItem Header="Tab2" Content="abc"/>
    </telerik:RadTabControl>
  </Grid>
</Window>

I'm using a Windows 8.1 workstation. If the language English (US) is used as the Windows display language, when I try to perform an assertion on the RadTabControl, the ItemStatus property contains the following generated string, which seems correct :
... <Property Name="SelectedValue" Value="Telerik.Windows.Controls.RadTabItem Header:Tab1 Content:abc" /> ...

In another hand, if the language pack French (Switzerland) is used, with the exact same application and the exact same assertion, the generated string looks like this :
... <Property Name="SelectedValue" Value="Telerik.Windows.Controls.RadTabItem Header : Tab1 Content : abc" /> ...

We can notice the whitespaces added before and after the column character.

The issue with this behavior is that if we record a CodedUI Test on machine with English (US) settings, and playback on a machine with French (Switzerland) settings, the assertion will fail.

Can someone please look into this issue ?

Thank in advance.
-Vince

Peshito
Telerik team
 answered on 26 Nov 2014
1 answer
82 views
Hi, 
I have a trial version for your products, in order to see if it fits my needs.
I found what would be perfect for my new desktop app using WPF here, but unfortunately it's for silverlight, here's the link:
http://demos.telerik.com/silverlight/#TileView/ItemSizing

It would really be great if you can give me a sample code to have a similar look and feel for my desktop app,
is it possible?
Thank you.
Pavel R. Pavlov
Telerik team
 answered on 26 Nov 2014
1 answer
178 views
I've made a simple bar chart:

BarSeriesDefinition barDefinition = new BarSeriesDefinition();
 barDefinition.Appearance.Fill = new SolidColorBrush( Colors.Blue );
ctrlLaneGraph.DefaultSeriesDefinition = barDefinition;
 SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.LegendLabel = "Number of Items";
seriesMapping.SeriesDefinition = new SplineSeriesDefinition();
 seriesMapping.ItemMappings.Add(new ItemMapping("ItemStart", DataPointMember.XValue));
seriesMapping.ItemMappings.Add(new ItemMapping("ItemPosition", DataPointMember.YValue));
 seriesMapping.SeriesDefinition = barDefinition;       
ctrlLaneGraph.SeriesMappings.Add(seriesMapping);
 ctrlLaneGraph.ItemsSource = ItemPosisionList;
 ctrlLaneGraph.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Auto;

The ItemPositionList is being regenerated on a timer every 5 seconds. 
How can I update the chart  ? 
 I've Try setting the ItemSource again - but I get a thread ownership exception
I want to make the update smooth without "repainting" things that did not change
Thanks, 
Dani

Martin Ivanov
Telerik team
 answered on 26 Nov 2014
10 answers
467 views
How do I control the tile position (row,column)?

Max number of rows, columns?

Thanks,

Ed
Maya
Telerik team
 answered on 26 Nov 2014
3 answers
100 views
Hello Telerik-Team,

is it possible to display the start- and enddate outside (left- and right aligned) at a ganttbar?
I have attached a sample screenshot.

Best regards,
Richard

Vladi
Telerik team
 answered on 26 Nov 2014
3 answers
166 views
I have a grid that has several Date Time columns. The value in these columns is dependent towards the time and not so much the date. When I go into the filter and enter a date and a time the filter does not accept this value and clears the field when I tab out or click somewhere else. However if I only enter a date and no time it will accept that filter. How do I get the filter to accept the time value as well?
Dimitrina
Telerik team
 answered on 26 Nov 2014
6 answers
298 views
Hello,

I want to implement some functionnalities using chartview. Let me explain :
- i have a chartview with one horizontal axis as DateTimeContinousAxis and some vertical axis
- i want to implement the zoom, it's ok, following code that i'm using :

<telerik:RadCartesianChart x:Name="chartVariables" ... Zoom="{Binding Zoom, Mode=TwoWay}"
PanOffset="{Binding PanOffset, Mode=TwoWay}" >
<telerik:RadCartesianChart.Behaviors>
<telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="None" />
</telerik:RadCartesianChart.Behaviors>
</telerik:RadCartesianChart>


- Using a toggle button, on check, i want to make a selection like zoom on the chart, get start date and end date and cancel the zoom
 but some problems occurs:
- The end date that i'm retrieving is wrong but the start date is ok

To do that i implemented the PanOffsetChanged event and i wrote the following code :

private void chartVariables_PanOffsetChanged(object sender, ChartPanOffsetChangedEventArgs e)
{
     if ((bool)this.btnInvalidate.IsChecked)
     {               
          DateTimeContinuousAxis axis = chartVariables.HorizontalAxis as DateTimeContinuousAxis;
                    
          DateTime startDate = axis.ActualVisibleRange.Minimum; // value is ok
          DateTime endDate = axis.ActualVisibleRange.Maximum;   // wrong
                     
          tbLog.Text = "From : " + startDate.ToString() + " - To : " + endDate.ToString();
                     
          chartVariables.Zoom = oldZoom;                // cancel the zoom
      }           
}


Anybody can help me?
Thanks in advance
Regards

Christophe Bienaime
Top achievements
Rank 1
 answered on 25 Nov 2014
5 answers
630 views
Hi,

I have an application in which we are using the RadTabControl with prism framework, and also we are doing a switching of themes in our application. We are switching between 3 Telerik themes (Office 2013, Visual Studio 2013 and Windows 8).

I face the following issues:
The tab headers do not come correctly, if i try to set it with the RadTabControl ItemTemplate property, but my theme switching works fine.
The tab headers come correctly, if i try to set it with the RadTabItem HeaderTemplate property, but my theme switching thereafter doesn't work correctly.
Also, can you please explain the difference between the RadTabControl's ItemTemplate property and the RadTabItem's HeaderTemplate property. My tab header comes fine when set the RadTabItem HeaderTemplate property, but not with the RadTabControl ItemTemplate property. The tabs have a TabItemStyle in the resource dictionaries- using which we inserted a close button into each tab.

I am also attaching a sample image showing the theme issue I am facing. 

Please guide me as to how I can do both, i.e., show the tab header as i require (An image, a text and a close button) and also work correctly when toggling between themes.

Thanks.
Pavel R. Pavlov
Telerik team
 answered on 25 Nov 2014
5 answers
243 views
I have a RadPaneGroup that hosts multiple RadPanes, Each RadPane contains a User Control, Each UserControl is very simple just some text boxes, I am having problem with keeping the key board focus when user switches between RadPanes.

-  After starting the application, there are 2+ radpanes
-  Click on a text box in first rad pane
- Switch to the next Rad Pane
- go back to the first rad pane
- I would expect that the key board focus is on the last text box that i clicked
- The focus is no on any control on the first rad pane

Thanks
vikas
Vladi
Telerik team
 answered on 25 Nov 2014
4 answers
123 views
My modified built-In theme OfficeBlack no longer works after upgrading
to Q1 2013. Anyone else with this problem?
Dyanko
Telerik team
 answered on 25 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?