This question is locked. New answers and comments are not allowed.
Hi,
when i Place the time bar in the Rad popup window/Tile view then headers for the Timebar are not rendering.please see the screen shot and the code i used.
in the main.xaml i am opening the timebar as a popup using the radwindow it is not rendering Headers
in Main.xaml
<UserControl x:Class="TimeBarTest.MainPage"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<telerik:RadTimeBar x:Name="timebarForweekchart" IsSnapToIntervalEnabled="True" Background="#FF5E6E65" Height="100" VerticalAlignment="Top"
PeriodStart="10/1/2010"
PeriodEnd="1/27/2012"
SelectionStart="12/25/2011"
SelectionEnd="1/27/2012"
MinSelectionRange="2.00:00:00"
MaxSelectionRange="90.00:00:00">
<telerik:RadTimeBar.Intervals>
<telerik:YearInterval />
<telerik:MonthInterval />
<telerik:WeekInterval />
<telerik:DayInterval />
</telerik:RadTimeBar.Intervals>
</telerik:RadTimeBar>
<Button x:Name="Popup" Click="Popup_Click" Content="RadPopup" Width="100" Height="100"/>
</Grid>
</UserControl>
in main.xaml.cs
private void Popup_Click(object sender, RoutedEventArgs e)
{
RadWindow window = new RadWindow();
ScrollViewer scrol = new ScrollViewer();
scrol.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
scrol.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
scrol.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
scrol.Content = new Timebar();
window.Content = scrol;
window.Header = "Test ";
window.Height = 500;
window.Width = 1000;
window.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterOwner;
window.ShowDialog();
}
in Time bar.xaml
<UserControl xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="TimeBarTest.Timebar"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<telerik:RadTimeBar x:Name="timebarForweekchart" IsSnapToIntervalEnabled="True" Background="#FF5E6E65" Height="100" VerticalAlignment="Top"
PeriodStart="10/1/2010"
PeriodEnd="1/27/2012"
SelectionStart="12/25/2011"
SelectionEnd="1/27/2012"
MinSelectionRange="2.00:00:00"
MaxSelectionRange="90.00:00:00">
<telerik:RadTimeBar.Intervals>
<telerik:YearInterval />
<telerik:MonthInterval />
<telerik:WeekInterval />
<telerik:DayInterval />
</telerik:RadTimeBar.Intervals>
</telerik:RadTimeBar>
</UserControl>
Thanks,
RK
when i Place the time bar in the Rad popup window/Tile view then headers for the Timebar are not rendering.please see the screen shot and the code i used.
in the main.xaml i am opening the timebar as a popup using the radwindow it is not rendering Headers
in Main.xaml
<UserControl x:Class="TimeBarTest.MainPage"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<telerik:RadTimeBar x:Name="timebarForweekchart" IsSnapToIntervalEnabled="True" Background="#FF5E6E65" Height="100" VerticalAlignment="Top"
PeriodStart="10/1/2010"
PeriodEnd="1/27/2012"
SelectionStart="12/25/2011"
SelectionEnd="1/27/2012"
MinSelectionRange="2.00:00:00"
MaxSelectionRange="90.00:00:00">
<telerik:RadTimeBar.Intervals>
<telerik:YearInterval />
<telerik:MonthInterval />
<telerik:WeekInterval />
<telerik:DayInterval />
</telerik:RadTimeBar.Intervals>
</telerik:RadTimeBar>
<Button x:Name="Popup" Click="Popup_Click" Content="RadPopup" Width="100" Height="100"/>
</Grid>
</UserControl>
private void Popup_Click(object sender, RoutedEventArgs e)
{
RadWindow window = new RadWindow();
ScrollViewer scrol = new ScrollViewer();
scrol.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
scrol.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
scrol.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
scrol.Content = new Timebar();
window.Content = scrol;
window.Header = "Test ";
window.Height = 500;
window.Width = 1000;
window.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterOwner;
window.ShowDialog();
}
in Time bar.xaml
<UserControl xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="TimeBarTest.Timebar"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<telerik:RadTimeBar x:Name="timebarForweekchart" IsSnapToIntervalEnabled="True" Background="#FF5E6E65" Height="100" VerticalAlignment="Top"
PeriodStart="10/1/2010"
PeriodEnd="1/27/2012"
SelectionStart="12/25/2011"
SelectionEnd="1/27/2012"
MinSelectionRange="2.00:00:00"
MaxSelectionRange="90.00:00:00">
<telerik:RadTimeBar.Intervals>
<telerik:YearInterval />
<telerik:MonthInterval />
<telerik:WeekInterval />
<telerik:DayInterval />
</telerik:RadTimeBar.Intervals>
</telerik:RadTimeBar>
</UserControl>
Thanks,
RK