Hi,
I have two RadSplitContainers that are DockedLeft and a DocumentHost which internally contains another RadSplitContainer in my window.
I'm trying the set the default widths of the two RadSplitContainers to occupy 20% and 30% of the MainWindow width and the rest 50% to be occupied by the DocumentHost.
To achieve this the two RadSplitContainers Widths and binded to the parent window width and using a converter the widths are split.
Problem: The converter is not invoked for these two docked RadSplitContainers that are outside the DocumentHost.
However, the converter is invoked for the RadSplitContainer in DocumentHost.
Attaching the screenshot. The docked RadSplitContainers have default widths, ideally they should occupy 20% and 30% of the window and they should maintain the same when the window is restored or resized.
Version used: 2014.3.1117.45
Below is the code sample:
xaml:
<Window x:Class="DockingWPF.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:dockingWpf="clr-namespace:DockingWPF"
Title="MainWindow" WindowState="Maximized" >
<Window.Resources>
<dockingWpf:WidthRatioConverter x:Key="WidthRatioConverter"/>
</Window.Resources>
<Grid>
<telerik:RadDocking>
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup>
<telerik:RadPane Header="Canvas" CanFloat="False" CanUserPin="False">
<Grid Background="Aqua">
</Grid>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical" Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ActualWidth, Converter={StaticResource WidthRatioConverter}, ConverterParameter=TempBrowser, Mode=OneWay}">
<telerik:RadPaneGroup x:Name="ApplicationPanesGroup" >
<telerik:RadPane Header="TemplateBrowser" CanFloat="False" CanDockInDocumentHost="False" IsPinned="True" CanUserClose="False" ScrollViewer.HorizontalScrollBarVisibility="Auto" />
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft" Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ActualWidth, Converter={StaticResource WidthRatioConverter}, ConverterParameter=AppBrowser, Mode=OneWay}">
<telerik:RadPaneGroup>
<telerik:RadPane Header="ApplicationTree" IsPinned="True" CanUserClose="False"/>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
</Grid>
</Window>
Converter:
public class WidthRatioConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
var param = parameter as string;
if (!string.IsNullOrEmpty(param))
{
switch (param)
{
case "TempBrowser":
return ((double) value/5);
case "AppBrowser":
return ((double) value/3);
}
}
return null;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return null;
}
}
Hi,
Need some help please
How can I bind a RadPivotGrid dynamically from codebehind?
The select query can change depending on a dropdownlist I have on the page so the field names will also change.
Example of select :
Select CompanyName, EmployeeId, FirstName,LastName, Salary from Table1
Example of Grid
CompanyName Number of employees Total Salary
Company1 23 345,676
<telerik:RadRibbonWindow><Grid> <Grid.RowDefinitions><RowDefinition Height="Auto"/><RowDefinition/></Grid.RowDefinitions> <telerik:RadRibbonView>
</telerik:RadRibbonView>
</Grid> </telerik:RadRibbonWindow>
Hi,
I've strange behavior with RadSlider inside a ScrollViewer. If the selection end thumb is at the maximum value and its container width is enlarged and then shrinked, the RadSlider doesn't shrink, it keeps the same size until the selection end thumb is moved to a lower value. It's is not the same behavior if the selection end thumb is not at the maximum value. I would have expect that the RadSlider shrink no matter the thumbs value.
I joined a sample project that reproduce that strange behavior. Just do the following steps : 1. Set selection end thumb to the max value 2. Enlarge window horizontally and shrink it back to original size.
Thanks for looking at this,
Etienne
Hi and happy new year folks,
is it somehow possible to save open-end appointments?
We're using ScheduleView for Appointments and absences. So when a user is absent for uncertain time, we want wo save an appointment which has no end time.
Is that possible?
Best regards,
David
namespace Telerik.Pivot.Core.Fields
{
/// <summary>
/// Represents a node in <see cref="T:Telerik.Pivot.Core.Fields.FieldInfoNode" /> hierarchy.
/// </summary>
public class ContainerNode
{
private List<ContainerNode> children;
/// <summary>
/// Gets a string that can be used as an identifier of this instance.
/// </summary>
/// <value>The name.</value>
public string Name { get; private set; }
/// <summary>Gets or sets the display name.</summary>
/// <value>The display name.</value>
public string Caption { get; private set; }
For several months, the Print Preview has been working fine on my RadGridView. But now, several of my users and I have a problem with the the software hanging. When I click the Print Preview button, the button changes colors because it has been clicked for about a second and then it returns to being white and at that time, the entire application is hung. The only option is to use the Task Manager, but the application itself is already gone and only vhost32.exe is running. Stopping that gets the GUI to go away, but my customers don't know that's what they need to do.
The strange thing is that not everybody has this issue even using the same software build. One fellow yesterday did one Print Preview that worked and after that it would hang every time.
Any ideas on what could be the cause for this or how to go about troubleshooting it?
I have two tabs with a radcombobox on each tab. Sometimes clicking on one radcombobox is changing my tab selection and putting focus on the other radcombobox. This only occurs with radcomboboxes, not with regular comboboxes.
Steps
- the radcombobox 1 on tab 1 is selected and focused (not sure the exact state, its difficult to reproduce)
- the user switches to tab 2 and clicks on the radcombobox 2
- the combobox 1 grabs the focus and the tab switches back to tab 1
and vice versa
Why does the combobox on the inactive tab grab the focus back?
Does the radcombobox not know when it is on not active tab?
How can I prevent the radcomboboxes from changing my tab selection?
Hello,
I have a VisualizationLayer bound to a collection of objects, which each have their own colour accessible via a property. I've defined a MapEllipseView for (some of) the objects in the collection via an ItemTemplateSelector. The MapEllipseView has its ShapeFill property bound to the colour, and I use a converter to convert from the Color object to a MapShapeFill object, i.e. ShapeFill="{Binding Color, Converter={StaticResourceEllipseFillConverter}}".
The issue I have is that when I add items to the collection the ellipses are rendered on the map, but the ShapeFill doesn't actually take effect until I hover over each ellipse in turn, so I need to "colour them in" with the mouse. Through debugging I've worked out that it accesses the property when an item is added to the collection, and when I hover over it doesn't access it again, so the map has clearly already obtained the colour it should be displaying, it's just not rendering it.
Is this a bug or is there something I can do to fix this?
Thanks,
Chris