<telerik:RadDocking Grid.Row="2" Grid.ColumnSpan="5" Grid.Column="0"> <telerik:RadDocking.DocumentHost > <telerik:RadSplitContainer > <telerik:RadPaneGroup > <telerik:RadDocumentPane Visibility="Collapsed" CanUserClose="False" telerik:RadDocking.FloatingSize="300 300" > <widgets:WidgetRadDiagram x:Name="xDiagram" ContextMenu="{x:Null}" telerik:DiagramSurface.IsVirtualizing="True" local:WidgetDragDropBehavior.IsEnabled="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" ShapeSerialized="OnDiagramShapeSerialized" ShapeDeserialized="OnDiagramShapeDeserialized" SizeChanged="RadDiagram_SizeChanged" SelectionChanged="xDiagram_SelectionChanged" IsEditable="True" Background="{Binding SelectedColor, ElementName=BackgroundColorEditor, Converter={StaticResource customColorToBrushConverter}, Mode=TwoWay}" IsBackgroundSurfaceVisible="{Binding IsGridVisible, Mode=TwoWay}" IsSnapToGridEnabled="{Binding IsSnapEnabled, Mode=TwoWay}" primitives:BackgroundGrid.CellSize="{Binding CellSize, Mode=TwoWay}" primitives:BackgroundGrid.LineStroke="{Binding SelectedColor, ElementName=GridColorEditor, Converter={StaticResource customColorToBrushConverter}, Mode=TwoWay}" primitives:AlignmentAdorner.HorizontalLineStroke="Green" primitives:AlignmentAdorner.HorizontalLineStrokeDashArray="2 1" primitives:AlignmentAdorner.HorizontalLineStrokeThickness="2" primitives:AlignmentAdorner.VerticalLineStroke="Green" primitives:AlignmentAdorner.VerticalLineStrokeDashArray="1 2" primitives:AlignmentAdorner.VerticalLineStrokeThickness="2" SnapX="{Binding SnapX, Mode=TwoWay}" SnapY="{Binding SnapY, Mode=TwoWay}" SelectionMode="Multiple" RectSelectionMode="Full" AutoLayout="False" > <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu x:Name="ContextMenuWidgetDiagram" ItemTemplate="{StaticResource MenuItemTemplate}" ItemClick="ContextMenuWidgetDiagram_OnItemClick" > </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> <primitives:ItemInformationAdorner.AdditionalContent > <telerik:SettingsPane Diagram="{Binding ElementName=xDiagram}" /> </primitives:ItemInformationAdorner.AdditionalContent> </widgets:WidgetRadDiagram> </telerik:RadDocumentPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer InitialPosition="DockedLeft" MinWidth="350"> <telerik:RadPaneGroup > <!--Toolbox--> <telerik:RadPane Header="Toolbox" IsPinned="False" Visibility="{Binding WidgetToolboxVisibility}"> <telerik:RadDiagramToolbox x:Name="ToolBox" Title="Gallery" IsOpen="False" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource ToolboxGroupTemplate}" Style="{StaticResource RadDiagramToolboxStyle1}" /> </telerik:RadPane> <telerik:RadPane x:Name="DiagramPropertiesPane" Header="DiagramProperties" IsPinned="False" > <!--IsPinned="True" Visibility="Visible">--> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid Grid.Row="0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Grid.Column="0" Text="Background Color" FontSize="12" VerticalAlignment="Center" FontWeight="Bold" Margin="5"/> <telerik:RadColorPicker Grid.Row="0" Grid.Column="1" x:Name="BackgroundColorEditor" Margin="5" Width="50" HorizontalAlignment="Left" IsRecentColorsActive="True" AutomaticColor="Black" SelectedColorChanged="BackgroundColorEditor_SelectedColorChanged" /> <TextBlock Grid.Row="1" Grid.Column="0" Text="Text Color" FontSize="12" VerticalAlignment="Center" FontWeight="Bold" Margin="5"/> <telerik:RadColorPicker Grid.Row="1" Grid.Column="1" x:Name="ForegroundColorEditor" Margin="5" Width="50" HorizontalAlignment="Left" IsRecentColorsActive="True" SelectedColor="Yellow" AutomaticColor="Yellow" SelectedColorChanged="ForeGroundColorEditor_OnSelectedColorChanged"/> <TextBlock Grid.Row="2" Grid.Column="0" Text="Font" FontSize="12" VerticalAlignment="Center" FontWeight="Bold" Margin="5"/> <ComboBox x:Name="FontFamilyComboBox" Grid.Row="2" Grid.Column="1" Margin="5" ItemsSource="{Binding Source={StaticResource myFonts}}" FontSize="10" Height="23" SelectionChanged="FontFamilyComboBox_OnSelectionChanged" > <ComboBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel /> </ItemsPanelTemplate> </ComboBox.ItemsPanel> <ComboBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding}" FontFamily="{Binding}" Height="20"/> </DataTemplate> </ComboBox.ItemTemplate> </ComboBox> <ComboBox x:Name="FontSizeComboBox" Grid.Row="2" Grid.Column="2" Width="50" Margin="5" SelectedValue="{Binding ElementName=xDiagram, Path=FontSize}" FontSize="10" SelectionChanged="FontSizeComboBox_OnSelectionChanged" /> <CheckBox x:Name="CheckBoxShowGrid" Grid.Row="3" Grid.Column="0" Content="Show Grid" VerticalAlignment="Center" FontSize="12" FontWeight="Bold" IsChecked="{Binding IsGridVisible, Mode=TwoWay}" Margin="5"/> <TextBlock Grid.Row="4" Grid.Column="0" Text="Grid Color" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" Visibility="{Binding ElementName=CheckBoxShowGrid, Path=IsChecked, Converter={StaticResource boolVisibilityConverter}}" /> <telerik:RadColorPicker Grid.Row="4" Grid.Column="1" x:Name="GridColorEditor" Margin="5" Width="50" SelectedColor="Gray" AutomaticColor="Gray" Visibility="{Binding ElementName=CheckBoxShowGrid, Path=IsChecked, Converter={StaticResource boolVisibilityConverter}}"/> <TextBlock Grid.Row="5" Grid.Column="0" Text="Cell Size" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" Visibility="{Binding ElementName=CheckBoxShowGrid, Path=IsChecked, Converter={StaticResource boolVisibilityConverter}}"/> <TextBox Grid.Row="5" Grid.Column="1" VerticalAlignment="Center" VerticalContentAlignment="Center" Margin="5" Text="{Binding CellSize, Mode=TwoWay}" Visibility="{Binding ElementName=CheckBoxShowGrid, Path=IsChecked, Converter={StaticResource boolVisibilityConverter}}"/> </Grid> </Grid> </telerik:RadPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> <telerik:GridViewCell Content="GridViewCell" Height="100" Width="100" /> </telerik:RadDocking>My RadDigaram Toolbox is contained in a RadSplitContainer with the InitialPosition="DockedLeft". When the diagram is displayed initially, the RadDiagramToolbox does a flyout correctly, fully displaying all widgets in the toolbox. After saving and reopening the diagram the toolbox will will only flyout partially. If the user pins the tool box, it will expand to the correct size, once unpinned it reverts back to a small size. Unfortunately I am unable to take screenshots due to the flyout closing once the mouse is moved off the flyout. The RadDigram is in the WidgetDiagram class which saved and loaded via the code below.
public void SaveRadDocking(RadDocking radDocking) { try { System.Windows.Forms.FolderBrowserDialog folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); folderBrowserDialog.RootFolder = Environment.SpecialFolder.Desktop; folderBrowserDialog.SelectedPath = SaveFolder; System.Windows.Forms.DialogResult result = folderBrowserDialog.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { SaveFolder = folderBrowserDialog.SelectedPath; Configuration.Instance.SetDisplayPath(SaveFolder); StringBuilder paneSizeStringBuilder = new StringBuilder(); if (Panes.Count > 0) { foreach (var pane in Panes) { paneSizeStringBuilder.AppendFormat("{0}:{1},", pane.ActualHeight, pane.ActualWidth); } Configuration.Instance.SetDisplaySizes(paneSizeStringBuilder.ToString().Remove(paneSizeStringBuilder.Length - 1, 1)); } using (FileStream fileStream = File.Create(SaveFolder + dockingLayoutFileName)) { fileStream.Seek(0, SeekOrigin.Begin); radDocking.SaveLayout(fileStream); } } } catch (Exception ex) { string message = string.Format("{0}/n{1}", ex.Message, ex.StackTrace); MessageBox.Show(message, "Save Display Error", MessageBoxButton.OK, MessageBoxImage.Error); } }public void LoadRadDocking(RadDocking radDocking) { System.Windows.Forms.FolderBrowserDialog folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); folderBrowserDialog.RootFolder = Environment.SpecialFolder.Desktop; folderBrowserDialog.SelectedPath = SaveFolder; System.Windows.Forms.DialogResult result = folderBrowserDialog.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { SaveFolder = folderBrowserDialog.SelectedPath; Manager.Instance.CurrentDataRequestor.Pause = true; if (Panes.Count > 0) { for (int index = 0; index <= Panes.Count; index++) { RadPane radPane = Panes[0]; RemovePane(radPane, false); } } Manager.ServerCommunicator.WindowIsBusy = true; LoadDisplays(radDocking, SaveFolder); Manager.Instance.CurrentDataRequestor.Pause = false; } } public void LoadDisplays(RadDocking radDocking, string displaysFolderPath) { Manager.Instance.CurrentDataRequestor.Pause = true; Manager.Instance.WidgetLoading = true; if (File.Exists(displaysFolderPath + dockingLayoutFileName)) { SaveFolder = displaysFolderPath; layout = File.ReadAllText(displaysFolderPath + dockingLayoutFileName); if (!string.IsNullOrWhiteSpace(layout)) { using (Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(layout))) { stream.Seek(0, SeekOrigin.Begin); radDocking.LoadLayout(stream); } } } foreach (ISubscriber widget in Manager.Subscribers) { if (widget.WidgetType != WidgetTypes.Text && string.IsNullOrEmpty(widget.TextWidgetName)) { //if it is a text widget loop through all subscribers looking at // non text widgets for a matching name. If a widget with Matching //Title is found assign the textwidgets name to the non text widget if (widget.Name != null) { if (!Manager.WidgetTextWidgetNames.ContainsKey(widget.Name)) { foreach (ISubscriber subscriber in Manager.Subscribers) { if (subscriber.WidgetType == WidgetTypes.Text) { if (widget.Title == subscriber.Title) { if (!Manager.WidgetTextWidgetNames.ContainsValue(subscriber.Name)) { widget.TextWidgetName = subscriber.Name; Manager.WidgetTextWidgetNames.Add(widget.Name, subscriber.Name); break; } } } } } } } } }Hi,
I'm trying to migrate from RadScheduler to RadscheduleView and I am on version 2012.1.326.40 right now.
I had a lot of filter options for the user that I implemented by filtering a CollectionViewSource that was bound to the RadScheduler's appointments source.
This doesn't seem to have any effect to the RadScheduleView though.
Is this a bug? What would be an alternative approach?
Any help would be highly appreciated.
Best Regards
Steffen
Hi,
I'm trying to migrate from RadScheduler to RadscheduleView and I'm on version 2012.1.326.40 right now.
Due to very heavy appointment templates I have to deactivate the animations when transitioning, because they hang for a long time even on the fastest machines.
This was easy to do, but somehow this stopped to work with 2012.1.
I tried without success:
-Telerik.Windows.Controls.Animation.AnimationManager.IsGlobalAnimationEnabled = false;
-Telerik.Windows.Controls.Animation.AnimationManager.SetIsAnimationEnabled(UIscheduler, false);
-telerik:AnimationManager.IsAnimationEnabled="False"
How can I disable these animations?
Any help would be highly appreciated.
Best Regards
Steffen
Hi,
Sometimes my RadPane headers are missing even though when I set breakpoints in the code I can see it being set. My views inherit from RadPane. Below is an example of it being set. I have included a picture of the header not showing. It seems strange because sometimes the header shows fine and sometimes it doesn't.
public partial class CustomerView : RadPane{ public CustomerView (string paneHeader, string serializationTag) { this.Header = paneHeader; RadDocking.SetSerializationTag(this, serializationTag); InitializeComponent(); }I have RadGridView when editable columns. When the user updates the value of a cell and then clicks anywhere else outside the grid, I expected there will be a Edit.Commit, but instead the cell is still in edit mode until you go in to that cell and hits Enter (or clicks on another row in the grid) .
How do I make this happen, MVVM-approach if possible
Many thanks in advance, Robert
<telerik:RadContextMenu.ContextMenu>
Hello, we want to convert all windows in our multiwindow- application from System.Windows.Window to RadRibbonWindow or RadWindows, to offer the user a uniform impression. Unfortunately the RadWindow behaves differently than the System.Windows.Window when it comes to minimizing and the taskbar.
Using the RadRibbonWindow for all windows seems to be a working solution, but is it a good idea? Or is it only intended for use with a RadRibbonBar?
Maybe there is another way to use Telerik themes with System.Windows.Window's?
greetings
sebastian


I have create a project where the user creates different filter buttons which, when clicked, updates the SearchText in the SearchPanel. And then the user can persist these saved buttons and reload at startup. Everything is working great except one thing! If the user sets SearchText and the grid then gets new data, the SearchText goes blank. Is there a way to persist the SearchText regardless of the underlining data changing?
I am actually using an external Textbox to set the SearchText and followed some of your examples of binding to the SeachText.
private void OnLoaded(object sender, RoutedEventArgs e)
{
this.GridStats.ShowSearchPanel = false;
_vmSearchPanel = this.GridStats.ChildrenOfType<GridViewSearchPanel>().FirstOrDefault();
this.txtFilter.SetBinding(TextBox.TextProperty, new Binding("SearchText") { Source = _vmSearchPanel.DataContext, Mode = BindingMode.TwoWay });
}
On a side note, it would be nice to be able to easily save/load SearchText because it makes a quicker way version saving all the Filter criteria on the Grid or using a RadFilter if you just want one textbox.
