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)?
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
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));
}
}
}
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
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.
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
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,
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
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
How to choose the vertical range of the chart?