Telerik Forums
UI for WPF Forum
1 answer
189 views
Hi,

i would like to hide (set collapsed) the text input box from the raddatepicker.

how can this be done?
Kaloyan
Telerik team
 answered on 10 Nov 2010
2 answers
118 views
Hello all,

I need some help getting multiple Y axis to work.  I can get other graphs to work, but as soon as I go to multiple Y axis I get nothin.

In my xaml I have this --> 

<telerikChart:RadChart x:Name="radChart" />
In my code behind I have this --> (Which is copied from the online help files, the only changes are in bold)

radChart.DefaultView.ChartArea.AxisY.Title = "Megawatt [MW]";
AxisY axisY = new AxisY();
axisY.AxisName = "AxisY_South";
axisY.Title = "Kilowatt [kW]";
radChart.DefaultView.ChartArea.AdditionalYAxes.Add( axisY );
  
//Series mapping for the collection with index 0
SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.CollectionIndex = 0;
seriesMapping.LegendLabel = "North [MW]";
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.SeriesDefinition.ShowItemLabels = false;
seriesMapping.ItemMappings.Add( new ItemMapping( "Actual", DataPointMember.YValue ) );
radChart.SeriesMappings.Add( seriesMapping );
//Series mapping for the collection with index 1
seriesMapping = new SeriesMapping();
seriesMapping.CollectionIndex = 1;
seriesMapping.LegendLabel = "South [kW]";
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.SeriesDefinition.AxisName = "AxisY_South";
seriesMapping.SeriesDefinition.ShowItemLabels = false;
seriesMapping.ItemMappings.Add( new ItemMapping( "Goal", DataPointMember.YValue ) );
radChart.SeriesMappings.Add( seriesMapping );
radChart.ItemsSource = TMbyDate;

...

TMbyDate works with itemmapping Actual or Goal for single Y axis so I dont think it is my data.

Any ideas?  By copying and pasting and then changing 3 variables I hope I have ruled out typos.
Is there more that the online help isn't telling?  What am I missing?

Also, how come this example doesn't tell me when to put in the DataPointMember.XValue?

Thanks
Travis
Evgeni "Zammy" Petrov
Telerik team
 answered on 10 Nov 2010
3 answers
94 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
124 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
157 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
235 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
96 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
153 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
339 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
136 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?