Telerik Forums
UI for WPF Forum
3 answers
150 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
222 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
1.0K+ 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
148 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
211 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
135 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
1 answer
202 views
hi,
we are trying to extract points array(vertex) from a rad polygon shape.
once the shape is resized the points remain the same.
any one know how to extrcat/calculate the new points based on resize/move ?

regards,
b.
Zarko
Telerik team
 answered on 28 Feb 2014
3 answers
284 views
Do you have a simple example of a custom container where the header is removed? I wanted to create a container control where i can control the layout of the items within the container.

Pavel R. Pavlov
Telerik team
 answered on 28 Feb 2014
2 answers
108 views
I downloaded the new RadControls for WPF (2014.1.224.45). 

I have a problem with this version .

All of my RTB's disappear and I don't know why.

I created a new proyect for wpf and I added  all references of the new release and I have de same issue.

Please could you help me it's very urgent.


I attached the screenshot of my sample proyect.

Missing User
 answered on 28 Feb 2014
0 answers
114 views
How to add link button in RadGridView GroupDescriptors row wpf
Note : screenshot attached
Guna
Top achievements
Rank 1
 asked on 28 Feb 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
Rating
SplashScreen
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?