or
<telerik:RadialScale x:Name="innerChannelRadialScale" Min="0" Max="300" Radius="0.68" MajorTicks="10" MinorTicks="5" LabelRotationMode="None"FontWeight="Bold" FontSize="60" SweepAngle="359" StartAngle="90" ShowLastLabel="True" ShowFirstLabel="False"MajorTickBackground="{DynamicResource MajorTickBackground}"MiddleTickBackground="{DynamicResource MiddleTickBackground}"MinorTickBackground="{DynamicResource MinorTickBackground}"><telerik:RadialScale.Ranges> <telerik:GaugeRange x:Name="innerAlarmLowRange" Min="0" Max="50" StartWidth="0.04" EndWidth="0.01" Background="{DynamicResource AlertRangeBackground}" /> <telerik:GaugeRange x:Name="innerNormalRange" Min="50" Max="250" StartWidth="0.01" EndWidth="0.01" Background="{DynamicResource NormalRangeBackground}" /> <telerik:GaugeRange x:Name="innerAlarmHighRange" Min="250" Max="300" StartWidth="0.01" EndWidth="0.03" Background="#FFE50000" /> </telerik:RadialScale.Ranges><telerik:RadTreeViewItem ItemsSource="{Binding DataContext.Documents, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTreeView}}}"> <TextBlock Text="Documents" /></telerik:RadTreeViewItem><telerik:RadTreeViewItem ItemsSource="{Binding DataContext.Pages, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTreeView}}}"> <TextBlock Text="Excluded Pages" /></telerik:RadTreeViewItem><telerik:RadGridView Grid.Row="1" ItemsSource="{Binding Bearings}" AutoGenerateColumns="False" ShowInsertRow="True" ShowGroupPanel="False" RowValidating="RadGridView_RowValidating" CanUserDeleteRows="True" CanUserInsertRows="True"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="Ordnungszahl" Width="*" DataMemberBinding="{Binding Ordnungszahl}" IsFilterable="True" SortMemberPath="Ordnungszahl" IsSortable="True" /> <telerik:GridViewDataColumn Header="BauartenCode" DataMemberBinding="{Binding BauartenCode}" Width="120" IsFilterable="False" IsSortable="True" /> <telerik:GridViewDataColumn Header="AussenDMCode" DataMemberBinding="{Binding AussendurchmCode}" Width="120" IsFilterable="False" IsSortable="False" /> <telerik:GridViewDataColumn Header="Stufe" DataMemberBinding="{Binding Stufe}" Width="120" IsFilterable="False" IsSortable="False" /> <telerik:GridViewDataColumn Header="Unterstufe" DataMemberBinding="{Binding Unterstufe}" Width="120" IsFilterable="False" IsSortable="False"/> </telerik:RadGridView.Columns> </telerik:RadGridView>private void RadGridView_RowValidating(object sender, Telerik.Windows.Controls.GridViewRowValidatingEventArgs e) { e.IsValid = false; }var grid = pExportObject as RadGridView;if (grid != null){ string extension = "csv"; var dialog = new SaveFileDialog(); dialog.DefaultExt = extension; dialog.Filter = "CSV (*.csv)|*.csv"; dialog.FilterIndex = 1; var format = ExportFormat.Html; if (dialog.ShowDialog() == true) { FileInfo fi = new FileInfo(dialog.FileName); switch (fi.Extension) { case ".xls": format = ExportFormat.Html; break; case ".xml": format = ExportFormat.ExcelML; break; case ".doc": format = ExportFormat.Html; break; case ".csv": format = ExportFormat.Csv; break; } using (var stream = dialog.OpenFile()) { var exportOptions = new GridViewExportOptions(); exportOptions.Format = format; exportOptions.ShowColumnFooters = true; exportOptions.ShowColumnHeaders = true; exportOptions.ShowGroupFooters = true; try { // Check if this thread has access to this object. grid.Dispatcher.VerifyAccess(); // The thread has access to the object, so update the UI. grid.Export(stream, exportOptions); } // Cannot access objects on the thread. catch (InvalidOperationException ex) { // Placing job onto the Dispatcher of the UI Thread. grid.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => grid.Export(stream, exportOptions))); } } }grid.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => grid.Export(stream, exportOptions)));I have got an application with an outlook bar on one side and a panel on the other.
I'm actually using a busy control. When a user clicks on an option the specified control gets injected into the panel.
This all works great and as it should. My problem is that the scollbar never appears in the panel the control.
I have a attached a pic and a link to a screen capture that may explain what i mean better.
https://docs.google.com/file/d/0BwHgkQgjXmQvN0ZNVV9mTzNtdEU/edit?usp=sharing
<Border BorderBrush="Silver"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="150" /> <ColumnDefinition Width="600" /> </Grid.ColumnDefinitions> <telerik:RadOutlookBar x:Name="outlookBar" telerik:StyleManager.Theme="Office_Blue" IsMinimized="{Binding ElementName=isMinimizedCheckBox, Path=IsChecked, Mode=TwoWay}" IsMinimizable="{Binding ElementName=isMinimizableCheckBox, Path=IsChecked, Mode=TwoWay}" IsVerticalResizerVisible="{Binding ElementName=isVerticalResizerVisibleCheckBox, Path=IsChecked, Mode=TwoWay}" HorizontalAlignment="Stretch"> <telerik:RadOutlookBarItem Header="Table Admin" FontWeight="Bold" x:Name="GroupTableAdmin" Icon="/Images/TableSmall.png" Tag="TableAdmin"> <telerik:RadListBox Name="LstTableAdmin" SelectionMode="Single" SelectionChanged="LstTableAdmin_SelectionChanged"> <telerik:RadListBoxItem Content="Contracts" /> <telerik:RadListBoxItem Content="Projects" /> <telerik:RadListBoxItem Content="Task Types" /> <telerik:RadListBoxItem Content="Task Groups" /> <telerik:RadListBoxItem Content="Project/Contract" /> <telerik:RadListBoxItem Content="TaskTypes/Groups" /> </telerik:RadListBox> </telerik:RadOutlookBarItem> <telerik:RadOutlookBarItem Header="Work" FontWeight="Bold" Icon="/Images/CalendarSmall.png"> <telerik:RadListBox Name="Lstworking" SelectionMode="Single" SelectionChanged="Lstworking_SelectionChanged"> <telerik:RadListBoxItem Content="Staff" /> <telerik:RadListBoxItem Content="Full Time Days" /> <telerik:RadListBoxItem Content="Part Time Days" /> </telerik:RadListBox> </telerik:RadOutlookBarItem> <telerik:RadOutlookBarItem Header="Holidays" FontWeight="Bold" Icon="/Images/SunSmall.png"> <telerik:RadListBox Name="LstHolidays" SelectionMode="Single"> <telerik:RadListBoxItem Content="Public Holidays" /> </telerik:RadListBox> </telerik:RadOutlookBarItem> <telerik:RadOutlookBarItem Header="My Staff" Icon="/Images/UsersSmall.png" x:Name="groupMyStaff" FontWeight="Bold" Tag="My Staff"> <telerik:RadListBox Name="lstMyStaff" SelectionMode="Single" SelectionChanged="lstMyStaff_SelectionChanged"/> </telerik:RadOutlookBarItem> </telerik:RadOutlookBar> <telerik:RadBusyIndicator IsBusy="True" Grid.Column="1" ScrollViewer.VerticalScrollBarVisibility="Visible" Name="Progress" DisplayAfter="0" telerik:StyleManager.Theme="Summer"> </telerik:RadBusyIndicator> </Grid></Border>
Injected Control
<UserControl
xmlns:TimeSheetsManagerControlLibrary="clr-namespace:TimeSheetsManagerControlLibrary"
x:Class="ctrl_Contracts"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WPF4"
xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Height="Auto">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../MyStyles.xaml" />
<ResourceDictionary Source="../DataTemplates.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<StackPanel VerticalAlignment="Top" Height="Auto">
<telerik:RadButton Click="RadButton_Click" Width="200" HorizontalAlignment="Left" >
<Image Source="/images/Print.png"/>
</telerik:RadButton>
<telerik:RadDataForm
Name="DataForm1"
AutoGenerateFields="False" AutoEdit="True"
AutoCommit="True"
Style="{StaticResource MyDataFormStyle}"
ItemsSource="{Binding Contracts, Mode=TwoWay}"
CurrentItem="{Binding SelectedItem,Mode=TwoWay}"
EditTemplate="{StaticResource ContractDataTemplate}"
NewItemTemplate="{StaticResource ContractDataTemplate}"
ReadOnlyTemplate="{StaticResource ContractDataTemplate}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="EditEnded">
<i:InvokeCommandAction Command="{Binding UpdateCommand}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</telerik:RadDataForm>
<telerik:RadGridView x:Name="Grid" SelectionMode="Single"
ScrollMode="RealTime" telerik:StyleManager.Theme="Summer"
ScrollViewer.VerticalScrollBarVisibility="Visible"
ItemsSource="{Binding Contracts, Mode=TwoWay}"
CurrentItem="{Binding SelectedItem, Mode=TwoWay}"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
Style="{StaticResource MyGridViewStyle}" >
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="ContractCode" Width="90"
DataMemberBinding="{Binding ContractCode}" />
<telerik:GridViewDataColumn Header="ContractDescription" Width="290"
DataMemberBinding="{Binding ContractDescription}" />
<telerik:GridViewCheckBoxColumn Header="Current" Width="20"
DataMemberBinding="{Binding Current}" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</StackPanel>
</UserControl>
#Region "Private Methods"
Private Sub LoadControl(Control As Object)
Me.Progress.IsBusy = True
Control.Load()
Me.Progress.Content = Control
Me.Progress.IsBusy = False
End Sub
#End Region