Telerik Forums
UI for WPF Forum
1 answer
217 views
Hi Team

I have a radtabcontrol.Items source bind to some collection in ViewModel. Each tab item has its own view and VM. I am adding multiple tabitems to the control at run time. Steps are :
1. create the instance of the view model of the tab item
2. Add it to the collection in the VM.

After this , the tabcontrol shows the desired tabs. The issue is that the view of only last tab item is initialised , other tab items views remain uninitialised.  I need to select each tab item one by one...only then the view is getting initialised.

I need to read some control info from each tab item view model...for that i need each view to be initialised without manually clicking them one by one.
Tina Stancheva
Telerik team
 answered on 03 Mar 2014
1 answer
98 views
Hi,


  How to increase and decrease the decimal places separately in Numeric UpDown Control ?
  Is there any possibility to make it in telerik wpf ?


Thanks,

Mukesh
Yana
Telerik team
 answered on 03 Mar 2014
1 answer
67 views
It is always a pain to use your wpf and silverlight online documentation. Wouldn't it be possible to separate the left and the right part, to scroll each other independently?

For example, when I use http://www.telerik.com/help/wpf/n_telerik_windows_documents_formatproviders_pdf.html and click on classes or properties I loose the context of the namespace, because I always have to scroll all the way down to get it back into my view.

I wonder why nobody complains about this? How do others learn about the features of new controls? Or do I miss something?
Yana
Telerik team
 answered on 03 Mar 2014
3 answers
149 views
Hi,
I wanted my trackerball data display to be next to the mouse cursor rather than displaying at top of the tracker line. I did this by using trackBall.Margin = new Thickness(left, top, 0, 0); on mouse move of the chart. This works fine until the line starts to move towards the Y axis on either side.. Then the margin is not taken into account and it looks as if it leaves the space according to the width of the tracker data displayed. So if I have displayed long names in tracker template - then the width is more when it starts to ignore the margin from bit far off from Y axis. Can someone please help me to resolve this issue.

Thanks
Avneesh

Petar Marchev
Telerik team
 answered on 03 Mar 2014
3 answers
137 views
Hi telerik,

I have to create chart with code not xaml having LogarithmicAxis and LinearAxis, but can't display series successfully
and don't know  what is my mistake, though I refered your sample code in this forum and your doc as well.
My code snippet is as follows;
private RadCartesianChart GetChart()
     {
         RadCartesianChart cartChart = new RadCartesianChart();
 
         cartChart.HorizontalAxis = new LinearAxis() { Maximum = 50, Minimum = 17, MajorStep = 3 };
         cartChart.VerticalAxis = new LogarithmicAxis() { LogarithmBase = 10, Minimum = 1000, Maximum = 1000000 };
 
         LineSeries lineSeries = new LineSeries() { ShowLabels = true };
         // lineSeries.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "Age" };
         lineSeries.CategoryBinding = new GenericDataPointBinding<CordXy, double>() { ValueSelector = value => value.Age };
         lineSeries.ValueBinding = new GenericDataPointBinding<CordXy, double>() { ValueSelector = cord => cord.Num };
         // lineSeries.ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Num" };
         lineSeries.ItemsSource = CordXy.GetFollicleList();
 
         cartChart.Series.Add(lineSeries);
 
         DoubleCollection aray = new DoubleCollection(new double[] {1,1});
 
         cartChart.Annotations.Add(
                 new CartesianCustomLineAnnotation
                 {
                     HorizontalFrom = 35,
                     HorizontalTo = 35,
                     VerticalFrom = 0,
                     VerticalTo = 1000000,
 
                     Stroke = new SolidColorBrush(Colors.Blue),
                     StrokeThickness = 2,
                     DashArray = aray
                 });
         return cartChart;
     }
 }
 
 public class CordXy
 {
     public double Age { get; set; }
     public double Num { get; set; }
 
     public static ObservableCollection<CordXy> GetFollicleList()
     {
         var result = new ObservableCollection<CordXy>();
         for (int i = 0; i < 33; i++)
         {
             var add = new CordXy();
             add.Age = i + 18;
             add.Num = Math.Pow(10, (5.717 - 0.00019 * Math.Pow(add.Age, 2.452)));
             result.Add(add);
         }
         return result;
     }
 }

As you see, x-axis is linear which shows age of person and y-axis shows calculated value as logarithmic.
I think I did correct as you told with your sample and doc, but no luck.
Pls see my attached image and advise me what I made a mistake.

Thank you in advance.

RGDS
HK.Lee






Yonggu Kang
Top achievements
Rank 1
Iron
 answered on 03 Mar 2014
1 answer
207 views
Is there a way to set plot band annotations dynamically from C# code behind instead of from XAML?

The examples demonstrate the XAML approach, for instance, 
<telerik:CartesianPlotBandAnnotation Axis="{Binding ElementName=chart3HAxis}" To="3/2/2014" From="3/4/2014" />

but how to accomplish the sample thing using code behind, dynamically. 
Terry
Top achievements
Rank 1
 answered on 03 Mar 2014
13 answers
994 views
Yesterday I created a new WPF app using the Telerik WPF C# project template. I chose the Windows 8 theme from the control panel, and all seems fine. My app even runs and looks like Windows 8, but when I try and instantiate a UserControl in another project, that contains a RagGridView, on my InitializeComponent call, I get a MissingManifestResourceException. This explains that:

"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Telerik.Windows.Controls.GridView.g.resources" was correctly embedded or linked into assembly "Telerik.Windows.Controls.GridView" at compile time, or that all the satellite assemblies required are loadable and fully signed."

I also get a warning in my XAML editor, "cannot locate resource  'themes/genericwindows8touch'", and the all the XAML is underlined with blue, squiggly lines.

I never had this problem when I created a Telerik C# WPF project without choosing a theme. What is wrong?

										
Ron Frick
Top achievements
Rank 2
 answered on 02 Mar 2014
1 answer
136 views
If I use the following binding in a GridViewDataColumn

Column.Binding = new System.Windows.Data.Binding("rowdata[INDEX]");

I can see the data in the table just fine, but when i try to filter/group it doesn't work (when i click on the filter button all i see is [null]).

I can't create the columns in the  XAML file due to creating the grid dynamically in the code behind.

The gridview.dll version I use is 2011.3.1220.40, i'd rather not update to a newer version if possible.

Thanks in advance!
Goat
Top achievements
Rank 1
 answered on 02 Mar 2014
1 answer
191 views
Is there any way to get tabs aligned on the bottom right?  I've played around with the templates but haven't had any luck.

Thanks,

Brian
Kiril Vandov
Telerik team
 answered on 28 Feb 2014
1 answer
127 views
Hi,
In Telerik's Custom Grouping demo, a CustomGroupingBehavior is added in xaml.

<telerik:RadGridView Name="RadGridView1" behavior:CustomGroupingBehavior.IsEnabled="True"/>

How can I do this in C# code?

Thanks in advance.
Regards,
Gong
Hristo
Telerik team
 answered on 28 Feb 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?