Telerik Forums
UI for WPF Forum
1 answer
137 views

I'm trying to plot a “stepline” chart where AxisX is a DateTime and some points are nulls.
As I didn't find any specific series (I hope you'll address soon), I use LineSeriesDefinizion doubling data point (see code) but:
- null value are treated as 0 (wrong since 0 means 0 value while null means missing value)
- where first value is null, the control throws a NullReferenceException

        public MainWindow()

        {

            InitializeComponent();

            ConfigureChart();

        }

        private void ConfigureChart()

        {

            LineSeriesDefinition lineSeries = new LineSeriesDefinition();

            lineSeries.ShowItemLabels = false;

            lineSeries.ShowPointMarks = false;

            SeriesMapping actualMapping = new SeriesMapping();

            actualMapping.SeriesDefinition = lineSeries;

            actualMapping.LegendLabel = "Data";

            actualMapping.ItemMappings.Add(new ItemMapping("Day", DataPointMember.XValue));

            actualMapping.ItemMappings.Add(new ItemMapping("Value", DataPointMember.YValue));

            radChart.SeriesMappings.Add(actualMapping);

            radChart.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "#VAL{dd-MM-yy}";

            radChart.DefaultView.ChartArea.AxisX.LabelRotationAngle = 45;

            radChart.DefaultView.ChartArea.AxisX.IsDateTime = true;

            radChart.ItemsSource = MyData.GetData();

        }

    }

    class MyData

    {

        public DateTime Day { get; set; }

        public double? Value { get; set; }

        public static List<MyData> GetData()

        {

            DateTime today = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);

            List<MyData> list = new List<MyData>();

            list.Add(new MyData() { Day = today, Value = null });

            list.Add(new MyData() { Day = today.AddDays(1), Value = 1 });

            list.Add(new MyData() { Day = today.AddDays(1), Value = 2 });

            list.Add(new MyData() { Day = today.AddDays(2), Value = 2 });

            list.Add(new MyData() { Day = today.AddDays(2), Value = 1.5 });

            list.Add(new MyData() { Day = today.AddDays(3), Value = 1.5 });

            return list;

        }

    }


Sincerely
Ivano

 

 

Dwight
Telerik team
 answered on 25 May 2010
1 answer
81 views
http://www.telerik.com/help/wpf/telerik.windows.controls.charting-telerik.windows.controls.charting.axis2d%601-sliderposition.html

"Gets or sets the slider position.    "

WOW... REALLY???

:P

For a product that you are selling for $1k a pop, your documentation leaves much to be desired. :(
Hristo
Telerik team
 answered on 25 May 2010
1 answer
114 views
Hi,
I have the following problem:
I have a GridView with ItemSource bound to a property in view model. View model refreshes the property every 10 seconds, and when this happens all the row details row that were opened, or context menu that was open, closes down.
How can this be avoided?
Vlad
Telerik team
 answered on 25 May 2010
1 answer
73 views
Hello, I have a requirement where a user can click on already selected row to navigate to some other pages of my app. So, SelectedItem would only work the first time if there is no selection yet. I also would like to have the selected item highlighted but at the same time need to intercept a Click and proceed from there on.

I am trying to bind LeftClick mouse action to ICommand on my ViewModel using InputBinding however it seems something else is eating it before I can receive it. RightClick works.

Thanks,

Xoma
Xoma
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
82 views
I don't know if it is a known issue, but when I am opening the Excel-like filtering window and i set my cursor in one of the two textboxes and I press the Tab Key, i get an error.

Is there any possibility to avoid this error? I do not just get this error in my test application, I also get it locally on my WPF Demos application.

I am using RadControls for WPF Q1 2010, released on 09 March 2010
Milan
Telerik team
 answered on 24 May 2010
1 answer
176 views
I want to be able to merge cells in the GridView across rows (Similar to the functionality "Merge cells" in MS Excel). Is this feature supported? If yes, can you provide an example that demonstrates this?
Milan
Telerik team
 answered on 24 May 2010
1 answer
164 views
I have about 2500 rows 10 cols in my grid.

I want the grid to update (without loading all data from scratch) when I update, insert or delete a row in the database.

How do I solv this the best way? I prefere a webservice solution (so I also can use the solution in Silverlight). But if that is not possible direct connect to DB is ok (using SQL2008 Express),

I don't need sorting or grouping the data in Grid. (but could be handy in other projects...)

Any C# is welcome.  Thanks!
Milan
Telerik team
 answered on 24 May 2010
4 answers
112 views
Hello, i want to do the format of number like: 1,2,3, not 1.00,2.00,3.00, but i can not... help me please
Sergey Nemtsev
Top achievements
Rank 1
 answered on 23 May 2010
3 answers
138 views
I try to use the "Endless scrolling" http://blogs.telerik.com/vladimirenchev/posts/09-02-02/wpf_how_to_endless_scrolling_of_2mil_records_using_backgroundworker_and_linq_to_sql.aspx  in Q3 but this code don't work anymore:

GridViewVirtualizingPanel panel = GridViewItemsControl.GetVirtualizingPanel(RadGridView1.ItemsControl);  
panel.ScrollOwner.VerticalScrollEnded += new EventHandler<System.Windows.Controls.Primitives.ScrollEventArgs>(ScrollOwner_VerticalScrollEnded); 

Any suggestions how to get this working in Q3?
Kennet
Top achievements
Rank 2
 answered on 23 May 2010
2 answers
51 views
Hey all,

I have a treeview that is very stock standard, and has to date been working a treat.

I upgraded to the April 22 release code, and experienced the drag and drop bug where not being in a standard window crashed it consistently. I worked around that by taking everything from my 3rd party ribbon window and dumping it in a standard WPF window. Now I can drag nodes around, but it won't let me drop them anywhere in my tree.

Puzzled, I swapped out the dll's for the March 9 dll's, and it works fine.

Obviously the best solution to my problem is to roll back to the March release. Just thought I'd mention this and see if it's just me or if anyone else has bumped into this?
Jeff Whitty
Top achievements
Rank 1
 answered on 22 May 2010
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?