Telerik Forums
UI for WPF Forum
4 answers
141 views
There is a bug when presenting multiple dataseries (DateTime) with different starting points.
All series are shifted to the same starting point (to the left).

The bug is easy to reproduce, and I have attached some sample code (updated for better formatting).

Is this possible to get around?

Also, is there a way to get a smaller presentation (eg. day/month/yr) of the dates along the x-axis? (so they do not overlap).

Best regards,

Tomas Wangen.



Window1.xaml

 

 

 

 

<Window x:Class="GraphTest.Window1" 
    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" 
    Title="Window1" Height="400" Width="600" Loaded="Window_Loaded">  
    <Grid> 
        <telerik:RadChart x:Name="MainChart"></telerik:RadChart> 
    </Grid> 
</Window> 
 

Window1.xaml.cs

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Text;  
using System.Windows;  
using System.Windows.Controls;  
using System.Windows.Data;  
using System.Windows.Documents;  
using System.Windows.Input;  
using System.Windows.Media;  
using System.Windows.Media.Imaging;  
using System.Windows.Navigation;  
using System.Windows.Shapes;  
using Telerik.Windows.Controls.Charting;  
 
namespace GraphTest  
{  
    /// <summary>  
    /// Interaction logic for Window1.xaml  
    /// </summary>  
    public partial class Window1 : Window  
    {  
        public Window1()  
        {  
            InitializeComponent();  
        }  
 
        class DataEntry  
        {  
            public DateTime dt { getset; }  
            public double value { getset; }  
        }  
        private void Window_Loaded(object sender, RoutedEventArgs e)  
        {  
            MainChart.DefaultView.ChartArea.AxisX.IsDateTime = true;  
 
            ISeriesDefinition definition = new StackedBarSeriesDefinition();  
 
            DataSeries dataSeries1 = new DataSeries() { Definition = definition };  
            DataSeries dataSeries2 = new DataSeries() { Definition = definition };  
 
            DateTime time1 = DateTime.Today;  
            DateTime time2 = time1 + new TimeSpan(1, 0, 0, 0);  
            DateTime time3 = time2 + new TimeSpan(1, 0, 0, 0);  
            DateTime time4 = time3 + new TimeSpan(1, 0, 0, 0);  
 
            List<DataEntry> testData1 = new List<DataEntry>() {   
                new DataEntry() { dt = time1, value = 10.0 },   
                new DataEntry() { dt = time2, value = 15.0 },  
                new DataEntry() { dt = time3, value = 20.0 }};  
 
            // notice that testData2 is shiftet 24 hrs from testData1  
 
            List<DataEntry> testData2 = new List<DataEntry>() {   
                new DataEntry() { dt = time2, value = 30.0 },   
                new DataEntry() { dt = time3, value = 40.0 },  
                new DataEntry() { dt = time4, value = 20.0 }};  
 
            foreach (DataEntry entry in testData1)  
                dataSeries1.Add( new DataPoint(entry.dt) { YValue = (double)entry.value });  
 
            foreach (DataEntry entry in testData2)  
                dataSeries2.Add(new DataPoint(entry.dt) { YValue = (double)entry.value });  
 
            MainChart.DefaultView.ChartArea.DataSeries.Add(dataSeries1);  
            MainChart.DefaultView.ChartArea.DataSeries.Add(dataSeries2);  
        }  
    }  
}  
 
Ves
Telerik team
 answered on 02 Mar 2009
1 answer
304 views
hello,

I am trying to implement a filtering functionality, wherein say I have a field in the TreeView Severity, and I want to Filter the treeView based on this property then I type the severity level in some textbox, say I type "a" then it should show me all the nodes whose severity starting with "a", and this should be handled on the keypress.

Any code highlighting this will be helpful.

Bobi
Telerik team
 answered on 27 Feb 2009
1 answer
145 views

Hello.

This issue is not big problem but still I think it could behave better. It is hard to describe what I mean and so I made this short video capture:

http://www.youtube.com/watch?v=m7mH0iRq-Gw

It is about range slider where I start to drag right slider to left until range is zero (for example like in video 21-21) then I keep mouse button down and move with mouse to the left and with mouse button still pressed I move back to the right again.

Then right slider should start to move to 21-22 and then 21-23 and so on but this is not happening. When I keep moving mouse to the right it later jumps to 21-26 and then 21-29 or something similar.

So trying to drag right slider too much to left visually makes nothing but it seems like inside RadSlider is something changing for some reason.
(It is same with left slider, I just used right as example.)

Best regards,
Michal

Bobi
Telerik team
 answered on 27 Feb 2009
7 answers
669 views
Hi all.

I want to determine if Row or Cell in sight.
I checked IsVisible field of RowGridView but it always true. IsVisible
property of GridViewCell is true at first. After i had moved it out of visible area
it became false. After that it was alway false even if row was in visible are of
grid.

Regards, Anton.

Valeri Hristov
Telerik team
 answered on 25 Feb 2009
3 answers
134 views
Just a quick heads up. Though your probably aware of this.

Having a Converter on a column gets ignored by the filters (the filters just display the 'DataMemberPath').

Thanks

Guido
Hristo Deshev
Telerik team
 answered on 25 Feb 2009
4 answers
568 views

Hi, 
I am new to the WPF world but I am trying to use the RadGridView in a ViewModel (MVVM) architecture.

Normally al my ViewModels contain a SelectedProduct property which automatically enables other realted commands in the UI. (change,view, etc).


This is working perfectly in the included ListBox control:

<ListBox ItemsSource="{Binding Products}"

                    SelectedItem="{Binding SelectedProduct}"

                    DisplayMemberPath="Product.ProductName">

        </ListBox>

When trying the same in your Telerik RadGrid it fails my property setter never gets called.

     <telerik:RadGridView telerik:Theming.Theme="Vista"

                                       MultipleSelect="False"

                                       ItemsSource="{Binding Products}"  IsReadOnly="False"

                                       SelectedItem="{Binding SelectedProduct}"

                                       ColumnsWidthMode="Fill" AutoGenerateColumns="False">

                   <telerik:RadGridView.Columns>


The SelectionChanged event off course works and raises every time I click / move on another item but I am expecting my "SelectedProduct" property to be automatically updated (setter never called).


This SelectedProduct property get's called on the getter so actually it's used/read.


Looks like it's not using 2-way binding...


Any ideas what I am doing wrong?? 


Sebastian Talamoni
Top achievements
Rank 1
 answered on 24 Feb 2009
1 answer
63 views
Hi every one i would like to know what features are available/not in the trial versions of the WPF controls.
Thanks.
Vlad
Telerik team
 answered on 24 Feb 2009
5 answers
284 views

I have a grid with a decimal column in it. When i try to type a number with a decimal (ie 101.5), on press of the decimal key (period) the mouse cursor returns to the beginning of the column.

GridViewDataColumn

valueColumn = new GridViewDataColumn();

 

 

valueColumn.Name =

"Value";  

 

 

valueColumn.UniqueName =

"Value";  

 

 

valueColumn.HeaderText =

"Value";  

 

 

valueColumn.DataMemberPath =

"Value";  

 

 

valueColumn.Width =

new GridLength(80);  

 

 

valueColumn.DataType =

typeof(decimal);

 

 

valueColumn.IsSortable =

false;

Thanks for any help.
-Brandon

 

 

 

 

 

Hristo Deshev
Telerik team
 answered on 24 Feb 2009
1 answer
131 views
Hi All,

I'm testing your WPF grid and would like to measure Filtering operation for my needs.
But I cannot find appropriate client events, something as:

RecordFilteringChanged
RecordFilteringDropDownOpen
RecordFilteringDropDownPopulated

Could you give me way to do that?

Grego


Valeri Hristov
Telerik team
 answered on 23 Feb 2009
1 answer
215 views

Hello.

I am trying RadSlider control and found this small problem:
I have on my container (Canvas) except RadSlider control also Button (or some other control that can have keyboard focus).

By default RadSlider has Focusable property set to true and when it has keyboard focus it also reacts on arrow keys.

Problem is that when I press and release arrow key it starts to move selection on slider but don’t stop with it (like when arrow key would be pressed forever).

I think the reason is that with arrow keys keyboard focus is moved to my button and I believe slider receives keydown event but don’t get keyup because it is already received by button. As KeyboardNavigation is by default set to Cycle keyboard focus with arrows.

For me this makes no problem because I don’t need this feature and so I set Focusable property on slider to false but I wanted to mention it.

Best regards,
Michal

Bobi
Telerik team
 answered on 23 Feb 2009
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
DataPager
PersistenceFramework
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
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?