Telerik Forums
UI for WPF Forum
0 answers
100 views

 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;
        }
    }

Raghavendar
Top achievements
Rank 1
 asked on 10 Jan 2017
2 answers
90 views

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

 

newp
Top achievements
Rank 1
 answered on 09 Jan 2017
5 answers
492 views
I have an application that has a RadRibbonWindow form, with a grid and then a RadRibbonView.

<telerik:RadRibbonWindow>
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition/>
</Grid.RowDefinitions> <telerik:RadRibbonView>
    </telerik:RadRibbonView>
  </Grid>
</telerik:RadRibbonWindow>

This is then styled, using the Windows 8 style.

All is working as you'd expect. My issue is with the min/max/close icons on the form. They look too block and thick, particularly when maximized. The restore icon in especially blob like. Is there a way to change the styling of these buttons to use finer lines, or an outline similar to the office style?

Cheers
Evgenia
Telerik team
 answered on 09 Jan 2017
3 answers
193 views

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

I would have expect that the RadSlider shrinkno matter the thumbs value.
I would have expect that the RadSlider shrinkno matter the thumbs value.
I would have expect that the RadSlider shrinkno matter the thumbs value.
I would have expect that the RadSlider shrinkno matter the thumbs value.
I would have expect that the RadSlider shrinkno matter the thumbs value.
Martin Ivanov
Telerik team
 answered on 09 Jan 2017
1 answer
110 views

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

Kalin
Telerik team
 answered on 09 Jan 2017
1 answer
87 views

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; }

 

Kalin
Telerik team
 answered on 09 Jan 2017
1 answer
134 views

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?

 

Stefan Nenchev
Telerik team
 answered on 09 Jan 2017
3 answers
206 views
version 2016.3.1024.45

 

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?

 

Nasko
Telerik team
 answered on 09 Jan 2017
3 answers
303 views
Hi,

    After researching the forum and all available examples I still have a problem.
    Dear Telerik team members, before you post here an examples please make sure you read carefully this question:

    I have a simple enum (for populating GridViewComboBoxColumn options), and integer value representing the current  value for each row/combobox
    I need to bind the enum to the GridViewComboBoxColumn using XAML only (without setting the code-behind as I use MVVM) and without creating for this an extra custom class
    In all examples that I found on your web site you use an extra custom class to represent the data and connect it to the GridVeiw

    Please provide an example that will have a DataGrid with GridViewComboBoxColumn that is databinded to an enum directly

    Thank you!
Joel Palmer
Top achievements
Rank 2
 answered on 09 Jan 2017
2 answers
132 views

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

Chris
Top achievements
Rank 1
 answered on 06 Jan 2017
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?