Telerik Forums
UI for Silverlight Forum
13 answers
129 views
Hi,
 
Is there a way to set the calendar rule for the week number when showing week intervals on the timebar?

Cheers,

Simeon
Brian
Top achievements
Rank 1
Veteran
 answered on 07 May 2020
1 answer
62 views
Can I add more than one item to an viewport? 
Dinko | Tech Support Engineer
Telerik team
 answered on 14 Mar 2020
5 answers
159 views
Hi

Here we have few issues with radTimeBar.

1.We are using RadTimebar in our application. In our application we dont want to show the 'Resizable Scrollbar'. So that i am trying to hide    that scroll bar but of no use. One more thing that is how can we reduce the border thickness of 'Selection thumb'. I tried to resolve these issues using blend and get the result. But unfortunately 'SelectionTimeBarPanel' is showing error as (name space missed).
2. Unable to resize layout instead of width and height.
     if not give Width and Height control is not working ..please advice.
3. Can we show any value for y Axis For RadLinearSparkline In RadTimeBar ?

please resolve my issue.


Dinko | Tech Support Engineer
Telerik team
 answered on 21 Jun 2016
1 answer
47 views

We have a TimeBar that is used to show corresponding data in RadChart.

There is a LinearSparkLine being used inside the TimeBar. And this SparkLine seems to spread across the TimeBar for the selected dates even when there is no data for particular times in the.

In the attached screenshots, the Bindings have data only from 8PM of 31st October 2015, but the SparkLine seems to show data even for that time Interval.

I tried setting the Min and Max XValue of the SparkLine, and that also did not do workout.

Is there any way to set the SparkLine to show data only within particular intervals of the TimeBar?

Petar Marchev
Telerik team
 answered on 25 May 2016
1 answer
54 views
My Timebar SelectionStart and SelectionEnd are bound to DateTime properties.  I also have 2 RadDatePickers bound to those date properties.  When I initially load the application, or change the date in the Finish DatePicker, the SelectionEnd date of the TimeBar is off by 1 day.  So if I pick 12/2/2015 in the DatePicker for my finish date, the timebar will display its' finish as 12/1/2015.  When you drag the SelectionEnd bar, or the entire bar, the dates sync back up, but you can cause the problem again by changing the date in the Finish DatePicker.
Dinko | Tech Support Engineer
Telerik team
 answered on 04 Dec 2015
2 answers
29 views

I'm not sure if this is possible, but a user asked me if there is some way we can create a "bubble" popup on the timebar that would popup on the timebar...maybeat the top or bottom, when the user is sliding the timebars.  I've already created labels that are bound to the ActualSelectionStart and ActualSelectionEnd that update in real time, but they are located in a top corner of the application and remain in one static place.  The user wants a popup bubble to appear when they are dragging the timebars left or right that shows the exact/actual time selected, then disappear when the user lets go of the timebar.  Is this possible?  Like I said I already have the label that does this, but it doesn't show/hide based on the timebar being "grabbed", and it doesn't move with the timebar.

Thanks!

Scott
Top achievements
Rank 1
 answered on 08 Jun 2015
10 answers
195 views
Hi,

I am using RadControls for Silverlight Q2 2011 SP1. I have to perform following task on RadTimeBar:

  1. On mouse move show start and end date of highlighted interval.
  2. While moving TimeBar slider show start and end date selected by slider or selected by SnapToInterval selection bar.

I am able to achieve both scenarios separately, but not getting results at the same time. I am getting first result by using "e.HoveredPeriodRange.Value" of HoveredPeriodChanged event and second result by using MouseMove event and taking senders ActualSelectionStart and ActualSelectionEnd dates.

Please let me know how can I achieve both functionalities at the same time.
Please find the attached image and code for further reference.

Thanks,
Pushpendra

private void YearTimeBar_HoveredPeriodChanged(object sender, Telerik.Windows.Controls.TimeBar.HoveredPeriodEventArgs e)
{
    if (e.HoveredPeriodRange != null)
    {
        DisplaySelectionStartDate = e.HoveredPeriodRange.Value.Start.ToString("dd-MMM-yyyy");
        DisplaySelectionEndDate = e.HoveredPeriodRange.Value.End.ToString("dd-MMM-yyyy");
    }
}
 
private void YearTimeBar_MouseMove(object sender, System.Windows.Input.MouseEventArgs e)
{
    DisplaySelectionStartDate = ((Telerik.Windows.Controls.RadTimeBar)sender).ActualSelectionStart.ToString("dd-MMM-yyyy");
    DisplaySelectionEndDate = ((Telerik.Windows.Controls.RadTimeBar)sender).ActualSelectionEnd.ToString("dd-MMM-yyyy");
}
Petar Marchev
Telerik team
 answered on 12 May 2015
1 answer
87 views
I want to apply visualstudio2013 theme in my app.

this is my code,

public ProcessMonitor()
{
        Telerik.Windows.Controls.VisualStudio2013Palette.LoadPreset(VisualStudio2013Palette.ColorVariation.Dark);
        InitializeComponent();
}

But, not applied.

What should I do?
Evgenia
Telerik team
 answered on 06 Oct 2014
2 answers
81 views
Hi
The Telerik Team.

I need RadChart inside the RadTimeBar instead of RadSparkline. I have attached screen shots and my dummy implementation  with this thread. The viewport of the RadTimeBar not property matching with the chart's X-Axis.
Main issue:
1. The last hour of Time Bar not matching with chart ( more cleared in screen shot named showing12hronchart.jpg)
2. for more then 1 days also ( see screen shot formorethen1days-2ndimagefor11pm.png)
 

please note i only need to show hourly data.

Main.xaml
<Grid x:Name="LayoutRoot" Background="White">
       <telerik:RadTimeBar Name="timeBar1" Grid.Row="1"  Width="1200" Height="200"
                     PeriodStart="2011-01-01" PeriodEnd="2011-01-03" <!-- please change to one day -->
                     IsSnapToIntervalEnabled="True">
           <telerik:RadTimeBar.Intervals>
               <telerik:HourInterval/>
               <telerik:DayInterval/>
           </telerik:RadTimeBar.Intervals>
 
           <Grid Margin="0,10,0, 10">
               <telerik:RadChart ItemsSource="{Binding Items}" >
                   <telerik:RadChart.DefaultView>
                       <telerik:ChartDefaultView>
                           <telerik:ChartDefaultView.ChartLegend>
                               <telerik:ChartLegend Visibility="Collapsed"></telerik:ChartLegend>
                           </telerik:ChartDefaultView.ChartLegend>
                           <telerik:ChartDefaultView.ChartArea>
                               <telerik:ChartArea Margin="0 0 0 0" Padding="0 0 0 0">
                                   <telerik:ChartArea.AxisY>
                                       <telerik:AxisY Visibility="Collapsed" />
                                   </telerik:ChartArea.AxisY>
                                   <telerik:ChartArea.AxisX>
                                       <telerik:AxisX DefaultLabelFormat="hh" />
                                   </telerik:ChartArea.AxisX>
                               </telerik:ChartArea>
                           </telerik:ChartDefaultView.ChartArea>
                       </telerik:ChartDefaultView>
                   </telerik:RadChart.DefaultView>
 
                   <telerik:RadChart.SeriesMappings>
                       <telerik:SeriesMapping>
                           <telerik:SeriesMapping.SeriesDefinition>
                               <telerik:BarSeriesDefinition  />
                           </telerik:SeriesMapping.SeriesDefinition>
                           <telerik:SeriesMapping.ItemMappings>
                               <telerik:ItemMapping FieldName="DateTimeStamp" DataPointMember="XValue" />
                               <telerik:ItemMapping FieldName="Data" DataPointMember="YValue" />
                           </telerik:SeriesMapping.ItemMappings>
                       </telerik:SeriesMapping>
                   </telerik:RadChart.SeriesMappings>
               </telerik:RadChart>
           </Grid>
       </telerik:RadTimeBar>
   </Grid>

 Main.cs
namespace timebar
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            this.DataContext = this;
            InitializeComponent();
 
        }
      
        public List<Item> Items
        {
            get
            {
                List<Item> items = new List<Item>();
                Random r = new Random();
 
                for (DateTime date = timeBar1.PeriodStart; date < timeBar1.PeriodEnd; date = date.AddHours(1))
                {
                    items.Add(new Item() { Data = r.Next(10, 100), DateTimeStamp = date });
                }
 
                return items;
            }
        }
    }
 
    public class Item
    {
        public int Data
        {
            get;
            set;
        }
        public DateTime DateTimeStamp
        {
            get;
            set;
        }
    }
}

Thanks
Twinkle Bhumra
Twinkle
Top achievements
Rank 1
 answered on 30 Jan 2014
1 answer
37 views
Using VS 2013 and v 2013.3.1204.1050

I get the attached error when in design mode using VS2013. The application compiles and the timebar works as required but the display in design mode is lost.

The xaml for the timebar.

<telerik:RadTimeBar Height="100"
                                                            VerticalAlignment="Top"
                                                            Margin="6"                                                         
                                                            IsSnapToIntervalEnabled="True"
                                                            EnableSparklineVirtualization="False"
                                                            PeriodStart="{Binding PeriodStart}"
                                                            PeriodEnd="{Binding PeriodEnd}"
 
                                                            SelectionStart="{Binding SelectionStart,Mode=TwoWay}"
                                                            SelectionEnd="{Binding SelectionEnd, Mode=TwoWay}">
                        <telerik:RadTimeBar.Intervals>
                            <telerik:YearInterval />
                            <telerik:MonthInterval />
                            <telerik:WeekInterval />
                            <telerik:DayInterval />
                        </telerik:RadTimeBar.Intervals>
 
                        <telerik:RadColumnSparkline ItemFill="#FFD6D4D4"
                                                                                ItemsSource="{Binding ColumnDataList}"
                                                                                XValuePath="DatePoint"
                                                                                YValuePath="Value"
                                                                                ColumnWidthPercent=".8" />
                    </telerik:RadTimeBar>



  
Tsvetie
Telerik team
 answered on 19 Dec 2013
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?