Telerik Forums
UI for WinForms Forum
1 answer
84 views

Hi

I am playing with the RadRangeSelector. I have associated it to an existing chart. The chart is dynamically filled using data from the database.

In the image here below, the top control is a RadRangeSelector, the bottom control is a RadChartView.

Notice that my bottom chart shows series as stacked. How can I get the RadRangeSelector also showing stacked series?

Also notice that the dates are not inlined between top and bottom. How can the RadRangeSelector be sorted by dates (as my chart is showing)?

 

Nadya | Tech Support Engineer
Telerik team
 answered on 15 Nov 2023
1 answer
132 views

Hi,

I have chartview and radRangeSelector.

The question is: how can I get the Axis label values for from radRangeSelector for the start and end zoom.

Hope I can get help soon.

/Omar

Maria
Telerik team
 answered on 30 Aug 2022
1 answer
119 views

I found this thread https://www.telerik.com/forums/binding-to-rangestart-and-rangeend-of-radrangeselector that RadRangeSelector's StartRange and EndRange has been changed when data object changed.

Data object can not change when I change RadRangeSelector's StartRange and EndRange by UI.

Followed as my sample code:

public partial class Form2 : Form
{
    private readonly RangeDataObject dataObject = new RangeDataObject { StartRange = 0, EndRange = 100 };
 
    public Form2()
    {
        this.InitializeComponent();
 
        this.radRangeSelector1.DataBindings.Add(
            new Binding("StartRange", this.dataObject, "StartRange", false, DataSourceUpdateMode.OnPropertyChanged));
        this.radRangeSelector1.DataBindings.Add(
            new Binding("EndRange", this.dataObject, "EndRange", false, DataSourceUpdateMode.OnPropertyChanged));
    }
 
    private void Form2_Load(object sender, EventArgs e)
    {
    }
}
 
public class RangeDataObject : INotifyPropertyChanged
{
    private float startRange;
 
    private float endRange;
 
    public event PropertyChangedEventHandler PropertyChanged;
 
    public float StartRange
    {
        get { return this.startRange; }
        set
        {
            if (this.startRange != value)
            {
                this.startRange = value;
                this.OnPropertyChanged("StartRange");
            }
        }
    }
 
    public float EndRange
    {
        get { return this.endRange; }
        set
        {
            if (this.endRange != value)
            {
                this.endRange = value;
                this.OnPropertyChanged("EndRange");
            }
        }
    }
 
    protected virtual void OnPropertyChanged(string propertyName)
    {
        if (this.PropertyChanged != null)
        {
            this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
Peter
Telerik team
 answered on 04 Jan 2021
3 answers
102 views

The setting does not work when the range is left at its default setting.
Setting does not work when only one default setting is modified.

 

version: 2019.2.618.40

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Nov 2020
1 answer
163 views

I have two ChartView, one displaying moving average indicators and the other displaying other technical indicators, which have the same timeline.

How can I using one RangeSelector to control the two ChartView at the same time.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Nov 2020
1 answer
123 views

I was receiving exceptions when attempting to set range at runtime on the range selector.

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Telerik.WinControls.ChartView
  StackTrace:
   at Telerik.Charting.CombinedBarSeriesRoundLayoutStrategy.ApplyLayoutRoundingVertical(LayoutContext context)

So I stripped the form out of the main project and I've put it into a sample application. Commenting out lines 13 and 14 of FrmPerformanceChart.cs leads to different levels of nightmare.

Link to project is  sample: testchart

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2019
1 answer
61 views

Hello,

I use range seletor to associate with a radchartview.

If I associate the RadChartView control to RadRangeSelector both in design time and in program (in the function "form_load"), there is a strange behavior.

After I changed the form size, the range selector will initialize start range and end range by which means it cannot memorize the start/end range set by the movement.

However, if I only do "Me.radRangeSelector1.AssociatedControl" ONCE in the design time or in the program, the problem will be disappeared.

In my opinion, there is a bug in RadRangeSelector. It cannot support AssociatedControl 2 times. This issue doesn't appear for the other proprieties, even I set the other proprieties both in design time and in program.

I made a simple demo, please download here:

https://www.dropbox.com/s/u61lk7yql1ua25f/TestRangeSelector.rar?dl=0

 

In order to reproduce the issue:

step 1. launch the demo

step 2. move range selector

step 3. change the form size

You will see the range selector return to its original location.

You can remove this line in RadForm1_Load:

RadRangeSelector1.AssociatedControl = RadChartView1

 

Or remove the associated control in design time. You will find range selector can memorize the location all the time.

 

It makes us lot of time to find out. If it is a bug, please correct it. If it is not, any explication ?

 

Thank you by advance.

Regards,

 

Hristo
Telerik team
 answered on 07 Mar 2019
3 answers
93 views

Hello,

My RadRangeSelector associates to a RadChartView.

The RadChartView updates in real time, likewise for the RadRangeSelector by using:

RadRangeSelector1.RangeSelectorElement.InitializeElements()
RadRangeSelector1.RangeSelectorElement.ResetLayout(True)

 

Two controls update perfectly.

But if I move the RangeSelector or RangeSelectorScrollElement to change the range of the chart during updating, the move is very difficult.

Some time I cannot drag the selector or I cannot keep dragging for long time. It seems the mouse move event has been blocked for a while during the update.

But when I stop the update, it works ok.

The dragging is more smoothly for the static data chart than live data chart.

You can find the demo here:

https://www.dropbox.com/s/ag04nuonewr0y4a/TelerikWinFormsApp1.rar?dl=0

Thank you by advance.

Regards

Hristo
Telerik team
 answered on 05 Feb 2019
1 answer
87 views

Hi,

Im currently using a range selector for a line series chart view.

Is there a way that i can see / calculate how many data points are in the current view from the range selector

Cheers     

Dimitar
Telerik team
 answered on 01 Aug 2018
3 answers
105 views

 

How to choose the vertical range of the chart?

Dimitar
Telerik team
 answered on 30 Mar 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?