Tried to adapt the ScheduleView and TimeBar (MiniMap) example. from the WPF Example Controls App.
As in the example the ScheduleView and TimeBar lie in the same column. As in the example TimeBars VisiblePeriodStart is bound to CurrentDate of MiniMapScheduleView. Visible Days of MiniMapScheduler are calculated by a Converter from TimeBar VisiblePeriod..
The problem is that the underlying ScheduleView is only updating its view when clicking on the TimbeBar (even on startup/when itemsource is new bound)).
When scrolling or zooming in the TimeBar all shown MiniMap appointments vanish except the ones which are in the area "selected" by the TimeBer Selector.
Only when clicking again in the TImeBar (Selection) all MIniMap appointment appear again.
in the mentioned example the underlying ScheduleView updates instant and accordingly to the timebars zoom level.
Tried already:
Manually Update Scheduler (UpdateLayout() etc. in VisiblePeriodChanged- no effect.
Copied the bound Appointments observable collection from the MasterScheduleView to an own MiniMapAppointmentsCollection (thought had maybe something to do with virtuilaziation) - no effect.
Automatically updating the view when changing the underlying parameters (ItemsSource,VisiblePeriod, VisibleDays etc. etc) should be something very essential, am i missing something?
Does the RadTimeBar support when Windows has a non-Gregorian calendar set? Specifically this one: https://docs.microsoft.com/en-us/dotnet/api/system.globalization.umalquracalendar?view=net-5.0. I get an exception that says this when I change my Windows settings to get that calendar:
Exception Stack Trace: System.Windows.Markup.XamlParseException: Specified time is not supported in this calendar. It should be between 04/30/1900 00:00:00 (Gregorian date) and 11/16/2077 23:59:59 (Gregorian date), inclusive.
I can reproduce it with XAML as simple as this:
<telerik:RadTimeBar x:Name="TimeBar"
PeriodStart="1-Jan-2019 12:00:00 AM"
PeriodEnd="31-Dec-2019 11:59:59 PM"
VisiblePeriodStart="14-March-2019 12:00:00 AM"
VisiblePeriodEnd="11-Nov-2019 11:59:59 PM">
<telerik:RadTimeBar.Intervals>
<telerik:YearInterval />
<telerik:MonthInterval />
<telerik:WeekInterval />
<telerik:DayInterval />
</telerik:RadTimeBar.Intervals>
</telerik:RadTimeBar>
Hello
I have a TimeBar which Connet is a Cartesian chart. The Period Start and End are the Min and Max dates in the source of the Cartesian chart items. For some reason, the start and the end of the cartesian chart does not align with the boundaries of the TimeBar. As if the chart has has some margin/padding that prohibits it to align with the TiemBar boundaries. (see atteched graphs).
Here is the xaml of the Timebar + cartesian chart:
<telerik:RadTimeBar Height="150" VerticalAlignment="Top"
PeriodStart="{Binding PeriodStart, Mode=TwoWay}"
PeriodEnd="{Binding PeriodEnd, Mode=TwoWay}"
VisiblePeriodStart="{Binding VisiblePeriodStart, Mode=TwoWay}"
VisiblePeriodEnd="{Binding VisiblePeriodEnd, Mode=TwoWay}"
SelectionStart="{Binding SelectionPeriodStart, Mode=TwoWay}"
SelectionEnd="{Binding SelectionPeriodEnd, Mode=TwoWay}">
<telerik:RadTimeBar.Intervals>
<telerik:YearInterval />
<telerik:QuarterInterval/>
<telerik:MonthInterval />
<telerik:WeekInterval />
<telerik:DayInterval />
</telerik:RadTimeBar.Intervals>
<telerik:RadTimeBar.Content>
<telerik:RadCartesianChart Height="90" VerticalAlignment="Top">
<telerik:RadCartesianChart.Behaviors>
<telerik:ChartSelectionBehavior DataPointSelectionMode="Single" />
<telerik:ChartTooltipBehavior/>
</telerik:RadCartesianChart.Behaviors>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:DateTimeContinuousAxis Visibility="Collapsed" ShowLabels="False" TickThickness="0"/>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis Visibility="Collapsed" ShowLabels="False" TickThickness="0" SmartLabelsMode="None"/>
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.Series>
<telerik:BarSeries CategoryBinding="EffectiveDate" ValueBinding="PerformanceYTD" ItemsSource="{Binding PortfolioPerformanceHistoryChartItemPositive}">
<telerik:BarSeries.TooltipTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding DataItem.PerformanceYTD, StringFormat=P2}" Background="Bisque" Padding="1"/>
</ItemContainerTemplate>
</telerik:BarSeries.TooltipTemplate>
<telerik:BarSeries.PointTemplate>
<DataTemplate>
<Rectangle Width="10" Fill="Blue" />
</DataTemplate>
</telerik:BarSeries.PointTemplate>
</telerik:BarSeries>
<telerik:BarSeries CategoryBinding="EffectiveDate" ValueBinding="PerformanceYTD" ItemsSource="{Binding PortfolioPerformanceHistoryChartItemNegative}">
<telerik:BarSeries.TooltipTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding DataItem.PerformanceYTD, StringFormat=P2}" Background="Bisque" Padding="1"/>
</ItemContainerTemplate>
</telerik:BarSeries.TooltipTemplate>
<telerik:BarSeries.PointTemplate>
<DataTemplate>
<Rectangle Width="10" Fill="Red" />
</DataTemplate>
</telerik:BarSeries.PointTemplate>
</telerik:BarSeries>
</telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
</telerik:RadTimeBar.Content>
</telerik:RadTimeBar>
Thanks
Herald
Hello,
I use the property Selection & Periodstart to change values in background.
Now I want to find out, what the user selected, but I cant find the difference.
I also tried to change ActualSelectionChanged it also gets triggered by user & background.
Is there any event which only triggers by user?
Regards
Hello Telerik Team,
How can I resize both thumbs in the slider?
I added a picture, where you an see it better.
I tried with changing width of ThumbStyle, which causes troubles. I cant move the bar completely to the left or right.
Thanks.
Fairly new, and I hope this isn't a dumb question, but...
When I create a RadTimeBar by its lonesome, and bind values to the PeriodStart/End, SelectionStart/End everything works as expected. If I use it in a ItemTemplate in a RadListBox, intervals no longer show.
Any ideas?
Hello,
Please tell me how to hide resizable scrollbar or disabled? I don't want to change the time span of the TimeBar.
Thanks.
Hey,
I have a TimeBar which displays data within a visible time range of several hours and has a max selection range of 30 minutes. Thus I want to change the Date displayed in the Selection Range Title from "MM/dd/yyyy" to "dd.MM.yyyy HH:mm:ss". How can this be achieved?
Example code:
<telerik:RadTimeBar IsSnapToIntervalEnabled="False"
PeriodStart="{Binding AnalysisDetailPeriodStart, Mode=TwoWay}" PeriodEnd="{Binding AnalysisDetailPeriodEnd, Mode=TwoWay}" VisiblePeriodStart="{Binding AnalysisDetailVisiblePeriodStart, Mode=TwoWay}" VisiblePeriodEnd="{Binding AnalysisDetailVisiblePeriodEnd, Mode=TwoWay}"
SelectionStart="{Binding AnalysisDetailSelectedStart, Mode=TwoWay}" SelectionEnd="{Binding AnalysisDetailSelectedEnd, Mode=TwoWay}" MaxSelectionRange="{Binding AnalysisDetailMaxSelectionRange, Mode=OneWay}">
<telerik:RadTimeBar.Resources>
<utils:HourFormatterProvider x:Key="HourFormatterProvider"/>
</telerik:RadTimeBar.Resources>
<telerik:RadTimeBar.Intervals>
<telerik:MinuteInterval />
<telerik:HourInterval FormatterProvider="{StaticResource HourFormatterProvider}" />
<telerik:DayInterval />
</telerik:RadTimeBar.Intervals>
<telerik:RadLinearSparkline ItemsSource="{Binding ObservableData}" XValuePath="Date" YValuePath="Occurrences" />
</telerik:RadTimeBar>
Hello,
I have RadTimeBar
<telerik:RadTimeBar x:Name="radTimeBar"
PeriodStart="{Binding StartDate}"
PeriodEnd="{Binding EndDate}"
VisiblePeriodStart="{Binding VisibleStartDate}"
VisiblePeriodEnd="{Binding VisibleEndDate}"
SelectionStart="{Binding CurrentTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
SelectionChanged="radTimeBar_SelectionChanged"
ScrollMode="ScrollAndZoom">
<telerik:RadTimeBar.Intervals>
<telerik:MinuteInterval />
</telerik:RadTimeBar.Intervals>
</telerik:RadTimeBar>
When I slide the slider thumb to the end the aplication is broken
I don't know how to catch the exception before the crashed
I attached a print screen of the exception
Thanks