Telerik Forums
UI for WPF Forum
3 answers
112 views
Hello everybody, 
The customer asked me an application with tabs and docking.
The application is composed by 4 tabs and inside those tabs there are more tabs and in those there are the dockings.
Tab1
Tab2
--TabSub1
----Docking1
--TabSub2
----Docking2
--TabSub2
----Docking3
Tab3
Tab4

When I click on the tab2 I can see everything ok.
If i click on the tab2 and then TabSub3, TabSub1, TabSub2 and afterwards I go to Tab1 and then again in the Tab2 I can see that automatically the TabSubs start to change alone, like if they need to update the docking and then will stop in the last that i select (TabSub2).
There's a solution? I mean, I can say to the Docking to don't request to get "refreshed"? or to don't show that the tabs are moving, like something that you wait until the changes are done and then you show the Tab (In this case the Tab2).

This is the video to show the problem:
http://www.youtube.com/watch?v=3tg4oMOjt6g
Hristo
Telerik team
 answered on 10 Nov 2010
3 answers
133 views
Hello Telerik Team,

I am implementing the WPF Chart in a scenario with lot's of data, so sampling is critical to keep drawing performance high.

What I need is basically a custom "keepextremes"-function when sampling data.
Currently, keepextremes keeps smaller values of the value is smaller than zero, and larger values of the value is larger than zero. Is this correct? If so, I need to change the value where the graph sampling decides wether to keep the lower value or the higher value to - for example - keep max values if the value is greater than 4, and keep min values of the value is below 4.

Is this possible?

best regards

Ulrik
Ves
Telerik team
 answered on 10 Nov 2010
5 answers
174 views
Hi to all, I set the ShowInsertRow to true, but at runtime the new row isn't show.
I try to set the same ItemSource in a standard WPF toolkit datagrid and the new row works fine.
Am I missing something ?

XAML
<telerik:RadExpander Header=".: Web Roles :." Margin="7,150,9,223" IsExpanded="True">
<telerik:GridViewDataControl x:Name="gvdWebroles" IsFilteringAllowed="False" ShowGroupPanel="False" RowHeight="24" Height="192" VerticalAlignment="Top" AutoGenerateColumns="False" ShowInsertRow="True" RowDetailsVisibilityMode="Visible">
<telerik:GridViewDataControl.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name data" MinWidth="400"/>
<telerik:GridViewCheckBoxColumn AutoSelectOnEdit="True"  DataMemberBinding="{Binding EnableNativeCode}" Header="Enable Native Code" IsThreeState="False" MinWidth="100" ShowFieldFilters="False" IsGroupable="False" IsFilterable="False" ShowDistinctFilters="False" TextAlignment="Center" />
</telerik:GridViewDataControl.Columns>
</telerik:GridViewDataControl>
</telerik:RadExpander>

C#
gvdWebroles.ItemsSource = this.m_deploy.ServiceDefinition.WebRoles;

WebRoles class
public class AzureWebRole
    {
        public string Name { get; set; }
        public bool EnableNativeCode { get; set; }
  
        public List<AzureWebRoleInputEndPoint> InputEndPoints { get; set; }
  
        public AzureWebRole()
        {
            this.Name = "DefaultWebRole";
            this.EnableNativeCode = true;
  
            this.InputEndPoints = new List<AzureWebRoleInputEndPoint>();
            AzureWebRoleInputEndPoint defaultEP = new AzureWebRoleInputEndPoint();
            this.InputEndPoints.Add(defaultEP);
        }
    }
Yavor Georgiev
Telerik team
 answered on 10 Nov 2010
5 answers
252 views
Hi,
Does the grid/listgridview support some sort of spinner, while waiting?
I've if it does, I can't seem to find it on in your documentation.

Best regards
Kristján.
Kristjan Einarsson
Top achievements
Rank 1
 answered on 10 Nov 2010
2 answers
104 views

Drag and Drop

When I using flow direction right to left on the Grid  view the drag and drop act strange

Someone know this problem?

Best Regards

Ehud

Tsvyatko
Telerik team
 answered on 10 Nov 2010
1 answer
164 views
Hi,
I'm new with Telerik controls and am testing the demo Telerik WPF controls.
I have a problem with Right To Left support:

I create a new "Rad Control Browser Application" project. Then in "Page1" page, set it's FlowDirection property to "RightToLeft", then I place a button in this page, and in it's click event instantiate a RadWindow inherited control.
In this window I try to place some drag and drop samples. For example I place two tree with IsDragDropEnabled sets to true (It's not matter, I also test samples provided with WPF controls).
The problem is here:
When the FlowDirection property of the page is "LeftToRight" all things works well, but when this property is set to "RightToLeft", If I drag somthing for example from right to left it will move in opposite direction from left to right.

Note that I change the page's FlowDirection property, not the window. when I just change the window FlowDirection property all things are well. The problem is from page's FlowDirection property.

Sorry for my bad English. :)

Here is my source codes, please see these if my explanation is confusing.
I will attach an image of the result.

Page1.xaml:
<Page x:Class="RadControlsWpfBrowserApp1.Page1"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" mc:Ignorable="d"
      d:DesignHeight="300" d:DesignWidth="300"
      Title="Page1" FlowDirection="RightToLeft">
    <Grid>
        <Controls:RadButton Content="Open the window" Width="100" Height="40" Click="RadButton_Click" />
    </Grid>
</Page>

Page1.cs:
using System.Windows;
using System.Windows.Controls;
 
namespace RadControlsWpfBrowserApp1
{
    /// <summary>
    /// Interaction logic for Page1.xaml
    /// </summary>
    public partial class Page1 : Page
    {
        public Page1()
        {
            InitializeComponent();
        }
 
        private void RadButton_Click(object sender, RoutedEventArgs e)
        {
            var page = new RadWindow1();
            page.ShowDialog();
        }
    }
}

RadWindow1.xaml:
<telerik:RadWindow x:Class="RadControlsWpfBrowserApp1.RadWindow1"
        Header="RadControlsScenario1" Height="300" Width="300" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <telerik:RadTreeView Name="LeftRadTreeView" Margin="10" IsDragDropEnabled="True" BorderBrush="Black" BorderThickness="1"/>
        <telerik:RadTreeView Name="RightRadTreeView" Margin="10" IsDragDropEnabled="True" BorderBrush="Black" BorderThickness="1" Grid.Column="1"/>
    </Grid>
</telerik:RadWindow>

RadWindow1.cs
using System.Collections.Generic;
 
namespace RadControlsWpfBrowserApp1
{
    /// <summary>
    /// Interaction logic for RadWindow1.xaml
    /// </summary>
    public partial class RadWindow1
    {
        public RadWindow1()
        {
            InitializeComponent();
 
            var items = new List<string>()
                            {
                                "Item1",
                                "Item2",
                                "Item3"
                            };
            RightRadTreeView.ItemsSource = items;
        }
    }
}

So, Any Ideas?

Thanks.
Tsvyatko
Telerik team
 answered on 10 Nov 2010
3 answers
404 views
In our application we need all the space we can get.
That's why we want to minimize the width and/or height of all our scrollbars.
In an resource-file we wrote this:

<Style  TargetType="{x:Type ScrollBar}">
        <Setter Property="Stylus.IsFlicksEnabled" Value="false" />        
        <Style.Triggers>
            <Trigger Property="Orientation" Value="Horizontal">
                <Setter Property="Width" Value="Auto"/>
                <Setter Property="MaxHeight" Value="10" />
                <Setter Property="MinHeight" Value="10" />
            </Trigger>
            <Trigger Property="Orientation" Value="Vertical">
                <Setter Property="Height" Value="Auto" />
                <Setter Property="MaxWidth" Value="10"/>
                <Setter Property="MinWidth" Value="10"/>                
            </Trigger>
        </Style.Triggers>
    </Style>

This works fine for all scrollbars in the application. Also for the Telerik-scrollbars.
However...
The RadGridView-scrollbars width or height are being changed because of the new style,
but the inner buttons: the thumb and the repeatbuttons are no longer in the center of the scrollbar. 
We use your Telerik-themes.
What is the best way to change the width/height of your scrollbars (but not loozing the telerik-theme-style) ?

Vanya Pavlova
Telerik team
 answered on 10 Nov 2010
6 answers
156 views
Is there a way to set a panning range for left, right, bottom and top.  I want to restrict a user to only pan to the edge of the map and not off the map.  Also, is there a way to restrict on how far a user can zoom down or up.  I instantiated the event handlers for zooming and panning  but wondering if there is an easier way to set a range.

void

 

 

RadMap1PanningFinished(object sender, RoutedEventArgs e)

 

{
    // TODO: Check if center is within panning range?

 

}

 

 

void RadMap1ZoomChanged(object sender, EventArgs e)

 

{

 

 

    if (this.RadMap1.ZoomLevel > 6)

 

 

 

        this.RadMap1.ZoomLevel = 6;

 

 

 

    if (this.RadMap1.ZoomLevel < 3)

 

 

 

        this.RadMap1.ZoomLevel = 3;

 

}



Please let me know. Thanks
Christopher
Top achievements
Rank 1
 answered on 09 Nov 2010
27 answers
569 views
Hi,

I'm using RadSlider in range mode and doing TwoWay databinding on SelectionStart and StelectionEnd properties. I set the values within Minimum/Maximum range. However, the very first time during dialog load the Slider coerces SelectionStart value to 0. 

This is the slider code:
<RadSlider Minimum="-10" Maximum="50"
           SelectionStart="{Binding Path=CappedMinBitrate, Mode=TwoWay}" 
           SelectionEnd="{Binding Path=CappedMaxBitrate, Mode=TwoWay}"
           IsSelectionRangeEnabled="True"
           />

Initial valud of SelectionStart is set to 3.0. In the attached screenshot you can see how the value is being set to 0 from CoerceSelectionStart method.

Please let me know if I'm doing something wrong or there is a way to fix it.

Thank you,
Ruben
Ruben Hakopian
Top achievements
Rank 1
 answered on 09 Nov 2010
5 answers
85 views
Hello,

I have a Carousel populated with Observsable collection using MVVM. I want to be able to filter the carousel with a button click event.

Any Samples would be great

THANKS
    Rick
Vlad
Telerik team
 answered on 09 Nov 2010
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
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?