This question is locked. New answers and comments are not allowed.
Hello,
I'm not sure if anyone has the issue I'm experiencing: Timebar (Q1 2011 SP1) works flawlessly so long as the control isn't asked to zoom in or out using either the mouse wheel or resize the scrollbar. The control eventually updates but it can take upwards of 30 seconds on a data set of 10 or 100 points - doesn't matter.
The code is based on the blog example that has the timebar updating a chart object so that when the user interacts with the timebar, the selected window updates the main chart.
The timebar is associated with a radChart as follows:
I have in code behind a function that gets the data an sets the itemsource after a silverlight RIA call:
The binding works fine, the sparkline shows the data, the chart shows the data, the time bar can be interacted with just fine and so long as the zoom is not touched. When a zoom is called, the timebar takes forever to update - it eventually does it, but this is very odd.
This happens with a dataset of 10 or 100 rows, so it's doesn't seem to be a dataset size issue as far as response time goes. There is only one row of data per day.
Cheers,
Etienne
I'm not sure if anyone has the issue I'm experiencing: Timebar (Q1 2011 SP1) works flawlessly so long as the control isn't asked to zoom in or out using either the mouse wheel or resize the scrollbar. The control eventually updates but it can take upwards of 30 seconds on a data set of 10 or 100 points - doesn't matter.
The code is based on the blog example that has the timebar updating a chart object so that when the user interacts with the timebar, the selected window updates the main chart.
<Grid x:Name="gridTimebar" Grid.ColumnSpan="2" Grid.Row="1" > <telerik:RadTimeBar x:Name="timeBar" PeriodStart="1-Jan-2010 12:00:00 AM" PeriodEnd="31-Dec-2011 11:59:59 PM" VisiblePeriodStart="11-Nov-2010 12:00:00 AM" VisiblePeriodEnd="14-March-2011 11:59:59 PM" SelectionStart="1-Jan-2011 12:00:00 AM" SelectionEnd="28-Feb-2011 11:59:59 PM" SelectionChanged="OnTimebarSelectionChanged"> <telerik:RadTimeBar.Intervals> <telerik:YearInterval /> <telerik:MonthInterval /> <telerik:DayInterval /> </telerik:RadTimeBar.Intervals> <telerik:RadLinearSparkline x:Name="sparkLineDaily" XValuePath="RegistrationDate" YValuePath="RegistrationCountDailyTotal" /> </telerik:RadTimeBar></Grid>The timebar is associated with a radChart as follows:
<telerik:RadChart x:Name="xRadChart" UseDefaultLayout="False" TimeBar="{Binding ElementName=timeBar}" Grid.RowSpan="2" Grid.Row="2"> ... removed for brevity ...</telerik:RadChart>I have in code behind a function that gets the data an sets the itemsource after a silverlight RIA call:
public void Load(int month, int year, string termList) { var context = new DataWarehouseDomainContext(); var loadOp = context.Load(context.GetRegistrationCountsQuery(Global.Context, month, year, termList)); loadOp.Completed += (a, b) => { if (!loadOp.HasError) { var data = new RegistrationSeries(); // build our own data data.AddRange(loadOp.Entities.Select(item => new RegistrationDataPoint() { ... })); var minDate = data.Min(c => c.RegistrationDate); var maxDate = data.Max(c => c.RegistrationDate); timeBar.PeriodStart = minDate; timeBar.PeriodEnd = maxDate; sparkLineDaily.ItemsSource = data; } }; }The binding works fine, the sparkline shows the data, the chart shows the data, the time bar can be interacted with just fine and so long as the zoom is not touched. When a zoom is called, the timebar takes forever to update - it eventually does it, but this is very odd.
This happens with a dataset of 10 or 100 rows, so it's doesn't seem to be a dataset size issue as far as response time goes. There is only one row of data per day.
Cheers,
Etienne