Telerik Forums
UI for WPF Forum
3 answers
185 views
I have an application using a WPF RadTreeView control. I try to control the RadTreeView using a Coded UI Test.

Now I found out that the Playback is only able to find nodes of an RadTreeView which have already been displayed in the application. Given
a tree that looks like this:

Node1
   Node11
   Node12
Node2
   Node21
   Node22

After application start the RadTreeView only displays the top level nodes:

Node1
Node2

When I now try to find the 'Node11' control:

    WpfRadTreeViewItem node = _AppWindow.Navigation.GetNode("Node11");
    Click(node);

I get the error: 'The playback failed to find the control with the given search properties'. However, after expanding the Node1 and Node2 manually (and closing them again), the playback is able to locate the control (even if it is not currently displayed in the navigation tree).
I assumed that this is related to the "LoadOnDemand" feature of the RadTreeView, so I tried to set the 'IsLoadOnDemandEnabled'
and the 'IsVirtualizing' properties of the RadTreeView to 'False', but that did not change the behavior.

Is there a way that playback find's the control even if it has been not yet displayed in the navigation tree?
Is there a way to force the RadTreeView to load all subitems even if they are not yet displayed?

While searching for a workaround I tried to expand the root nodes by setting the 'IsExpanded' property to 'True':

    WpfRadTreeViewItem node = _AppWindow.Navigation.GetNode(target);
    node.IsExpanded = true;

However, if I do this, I get another error 'SetProperty of "IsExpanded" is not supported on control type: TreeItem'.

Why do I get this error?
What can I do to expand the Node by the Playback?
(Klicking on is no good idea since the node may already be expanded.)

Thanks and best regards,
Claudio
Petar Mladenov
Telerik team
 answered on 02 Jul 2014
1 answer
162 views
I have OLAP Cube defined in SQL Server Analysis server and now am trying to connect the RadpIvotGrid (for WPF) and RadPivotFieldList to this Cube. I presume I should create a xmlaDataProvider and then set the connection settings. I cannot seem to get this working nor can I find any detailed instructions. My specific questions are:
1. How do I format the connectionsettings.ServerAddress - do I have to use http: or can I just provide a connection string. Can you provide examples of both of these - my server name is CUBESERVER and its ip address is 192.168.1.117
2. Once I have got a connection I presume I just set the RadPivotGrid and RadPivotFieldList dataprovider to the xmlaDataProvider created in step 1 and 2 above - is this correct:?
3. How then do I specify what fields I want to show in the PivotField List or does it just pick these up from the dataprovider - i.e. the fields in the Cube and what does it pick up - e.g. The measures or the dimensions?
4. Finally do you have any example code (in C#) of connecting to a SQL Server Analysis server and setting the connection etc

I would appreciate your comments - thank you
Rosen Vladimirov
Telerik team
 answered on 02 Jul 2014
1 answer
115 views
Hello!

I am using RadRichTextBox, and in my scenario user can add hyperlinks to RichText to some application entities. Those entities can change their names outside of the richtextbox, so I need to update hyperlink text with corresponding data. But documentation about HyperlinkRangeStart does not give any clues how to update hyperlink text.

Can someone please tell me how can I accomplish my task?

WBR,
Dmitry.
Petya
Telerik team
 answered on 01 Jul 2014
5 answers
122 views
Hey,

I'm creating a proof of concept to test the telerik calendar control. We designed a design for this control but we're having a problem with styling the DayButtonStyle.
We like to change the looks of the buttonchrome in this control because it looks awfull with our design. It is no problem to change this style but when we change the style and we are going to the next month, the days are not refreshing. The days are in the same place as the month before what isn't correct in this new month.

Is there something I am missing? Or is there a solution for this issue? There is not much to find about styling these buttons or issues with it.
Kalin
Telerik team
 answered on 01 Jul 2014
3 answers
338 views
Hi team,
I am currently using 2013.3.1204.40 version of Telerik.(MVVM, WPF application)

I have checkbox column and 5 text boxes in grid.
when the checkbox is checked, i want 3 textboxes in grid to be disabled.
when the checkbox is unchecked, i want 2 other textboxes in grid to be disabled.
 
Can you please help on how to achieve the above functionality.

Thanks,




Dimitrina
Telerik team
 answered on 01 Jul 2014
8 answers
372 views
Hi guys n gals,

I have noticed that if I use SetColumnError on a DataTable with a GridView bound to it (WPF, MVVM) then I don't see the error inidcator appear on the GridView.

Is this intentional?  If so, I find the GridView to be missing some be pretty basic functionality...
Dimitrina
Telerik team
 answered on 01 Jul 2014
1 answer
127 views
Hello,
I have a WPF .NET/4.0 application using RadTileView v4.0.30319.
I want to know how to implement a one click (rather than have the default double-click) open a tile?
Thx
Chris
Milena
Telerik team
 answered on 01 Jul 2014
2 answers
195 views
  •  Hi,,
    Am Using MVVM  ,
    Is It Possible to bind Selected Appointment  from Schedulview to local Variable.

    I try the Following Code ,

    in xaml
     <telerik:RadScheduleView
    Grid.Row="1"
    Name="xRadScheduleView"
    SelectedAppointments="{Binding MyAppointments}" >


    in ViewModel

    private Appointment _MyAppointments;
    publicAppointment  MyAppointments
    {    get { return _MyAppointments; } 
       set    {  if (value  ==  _MyAppointments)
                     return;
         _MyAppointments =value;   
    on propertychanged("MyAppointments");
     }}

    dim DateFrom as datetime= MyAppointments.start();
    dim DateTo as datetime= MyAppointments.End();









Kalin
Telerik team
 answered on 01 Jul 2014
3 answers
185 views
I have a chart which implements a Logarithmic Scale for the Y-Axis as described here:
http://www.telerik.com/help/wpf/radchart-features-axes-logarithmic-scale.html

I some cases, when the IsLogarithmic Property is toggled for Line Series types, the Point Marks become skewed.  The lines themselves seem to be plotted correctly, but the Point Marks will appear in their old positions.  This behavior only occurs for only certain data sets.

Below is an example which demonstrates the problem.

XAML:
<Window x:Class="LogarithmicScale.MainWindow"
        xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
        xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"            
        xmlns:example="clr-namespace:Telerik.Windows.Examples.Chart.LogarithmicScale"
        Title="MainWindow" Height="700" Width="900" WindowStartupLocation="CenterScreen">
 
    <Window.DataContext>
        <example:ExampleViewModel />
    </Window.DataContext>
 
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
 
        <CheckBox x:Name="ToggleLogModeCheckBox" Content="Use Logarithmic Y-Axis"
                  IsChecked="False" Margin="6" Grid.Row="0"
                  Checked="ToggleLogModeCheckBox_Checked"
                  Unchecked="ToggleLogModeCheckBox_Checked" />
 
        <telerikChart:RadChart x:Name="RadChart1" Grid.Row="1" ItemsSource="{Binding Data}">
            <telerikChart:RadChart.DefaultView>
                <telerikCharting:ChartDefaultView>
                    <telerikCharting:ChartDefaultView.ChartArea>
                        <telerikCharting:ChartArea LegendName="PrimaryLegend">
                            <telerikCharting:ChartArea.AxisX>
                                <telerikCharting:AxisX/>
                            </telerikCharting:ChartArea.AxisX>
                            <telerikCharting:ChartArea.AxisY>
                                <telerikCharting:AxisY x:Name="LogAxis"
                                         IsLogarithmic="False"
                                         Title="Total population" />
                            </telerikCharting:ChartArea.AxisY>
                        </telerikCharting:ChartArea>
                    </telerikCharting:ChartDefaultView.ChartArea>
                    <telerikCharting:ChartDefaultView.ChartLegend>
                        <telerikCharting:ChartLegend x:Name="PrimaryLegend"/>
                    </telerikCharting:ChartDefaultView.ChartLegend>
                </telerikCharting:ChartDefaultView>
            </telerikChart:RadChart.DefaultView>
            <telerikChart:RadChart.SeriesMappings>
                <telerikCharting:SeriesMapping CollectionIndex="0">
                    <telerikCharting:SeriesMapping.SeriesDefinition>
                        <telerikCharting:LineSeriesDefinition ShowItemLabels="False" />
                    </telerikCharting:SeriesMapping.SeriesDefinition>
                    <telerikCharting:SeriesMapping.ItemMappings>
                        <telerikCharting:ItemMapping FieldName="Population"
                                      DataPointMember="YValue" />
                        <telerikCharting:ItemMapping FieldName="Time"
                                      DataPointMember="XValue" />
                    </telerikCharting:SeriesMapping.ItemMappings>
                </telerikCharting:SeriesMapping>
                <telerikCharting:SeriesMapping CollectionIndex="1">
                    <telerikCharting:SeriesMapping.SeriesDefinition>
                        <telerikCharting:LineSeriesDefinition ShowItemLabels="False" />
                    </telerikCharting:SeriesMapping.SeriesDefinition>
                    <telerikCharting:SeriesMapping.ItemMappings>
                        <telerikCharting:ItemMapping FieldName="Population"
                                      DataPointMember="YValue" />
                        <telerikCharting:ItemMapping FieldName="Time"
                                      DataPointMember="XValue" />
                    </telerikCharting:SeriesMapping.ItemMappings>
                </telerikCharting:SeriesMapping>
            </telerikChart:RadChart.SeriesMappings>
        </telerikChart:RadChart>
    </Grid>
</Window>


Code Behind:
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace LogarithmicScale
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
private void ToggleLogModeCheckBox_Checked(object sender, RoutedEventArgs e)
{
  if (this.RadChart1 != null)
  RadChart1.DefaultView.ChartArea.AxisY.IsLogarithmic = (bool)((CheckBox)sender).IsChecked;
}
 
}
}

View Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
 
namespace Telerik.Windows.Examples.Chart.LogarithmicScale
{
    public class ExampleViewModel : ViewModelBase
    {
        private List<List<Stats>> data;
        public List<List<Stats>> Data
        {
            get
            {
                return this.data;
            }
            set
            {
                if (this.data != value)
                {
                    this.data = value;
                    this.NotifyPropertyChanged("Data");
                }
            }
        }
 
        public ExampleViewModel()
        {
            List<Stats> list0 = new List<Stats>();
            List<Stats> list1 = new List<Stats>();
            List<List<Stats>> listindex = new List<List<Stats>>();
 
            for (int i = 0; i <= 1000; i++)
                list0.Add(new Stats(i, 1 * i));
 
            for (int i = 0; i <= 1000; i++)
                list1.Add(new Stats(i, i * 10));
 
            listindex.Add(list0);
            listindex.Add(list1);
 
            this.Data = listindex;
        }
    }
 
    public class ViewModelBase : INotifyPropertyChanged, INotifyPropertyChanging
    {
        public event PropertyChangedEventHandler PropertyChanged;
        public event PropertyChangingEventHandler PropertyChanging;
 
        protected void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
 
        protected void NotifyPropertyChanging(String info)
        {
            if (PropertyChanging != null)
            {
                PropertyChanging(this, new PropertyChangingEventArgs(info));
            }
        }
    }
}


Model:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Telerik.Windows.Examples.Chart.LogarithmicScale
{
    public class Stats
    {
        private int _time;
        public int Time
        {
            get
            {
                return this._time;
            }
            set
            {
                this._time = value;   
            }
        }
 
        private int _population;
        public int Population
        {
            get
            {
                return this._population;
            }
            set
            {
                this._population = value;   
            }
        }
 
        public Stats(int time, int population)
        {
            this.Time = time;
            this.Population = population;
        }
    }
}


Pavel R. Pavlov
Telerik team
 answered on 01 Jul 2014
1 answer
129 views
Hi team,

I've got a problem with the PersistanceManager. I'm using the routines from the demo for saving and loading the layout of the gridview. The data is saved in the isolated storarge. My gridview contains a GridViewToggleRowDetailsColumn.

When I start the application, don't change the layout, save the layout, restart the application and load the layout from the isolated storage the displayindex is deferred. When I remove the GridViewToggleRowDetailsColumn, save and load works fine.

<telerik:GridViewToggleRowDetailsColumn Header="+" HeaderTextAlignment="Center" x:Name="MainToggleColumn"/>

Please take a look at the attached screenshots. The first one (hc_110.jpg) displays the layout before saving. The second one (hc_111.jpg) displays the layout after restarting the application and loading the layout.

Do you have an idea how to find a solution for this?


Best regards


Yoan
Telerik team
 answered on 30 Jun 2014
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?