I want to automate MVC application with coded UI test (VSTS
2010) and while doing automation Rad grid control creates problems. At the time
of recording what are the operations we have performed all those are recorded
very well but at the time of executing recorded script thrown small message
window with message “an error occurred” and script is not moved further from
that point.
Please guide me how to automate below operations on radgrid
with the help of coded UI
Dim radPieChart1 As New RadPieChart()Dim series As New PieSeries()series.DataPoints.Add(New PieDataPoint() With {.Value = 100})series.DataPoints.Add(New PieDataPoint() With {.Value = 35})series.DataPoints.Add(New PieDataPoint() With {.Value = 15, .OffsetFromCenter = 0.3, .IsSelected = True})radPieChart1.Series.Add(series)LayoutQ4.Children.Add(radPieChart1)Hi,
How can I apply any of built in application theme (for example Windows7) to my application to see it on design time for example in blend.
Now I am using this:
StyleManager.ApplicationTheme = new Windows7Theme();
And it is working on run time but of course not in designer.
I've got a listBox initialised with the following: lbxFunction.ItemsSource = Enum.GetValues(typeof(ChartAggregateFunction)); How do I disable certain ListBox items? I tried: ((RadListBoxItem)lbxFunction.Items[0]).IsEnabled = false; I get an error. Any solutions will be appreciated.
I played with the sample for the RadRibbon in MVVM.
There is an example of DataTemplate for the RadRibbonSplitButton.
However, the sample is not complete and does not show how to bind "Contextual" items of the RadRibbonSplitButton.
I tried this
<DataTemplate x:Key="MenuItemTemplate"> <TextBlock Text="{Binding Text}" /> </DataTemplate> <DataTemplate x:Key="SplitButtonTemplate"> <telerik:RadRibbonSplitButton Text="{Binding Text}" Size="{Binding Size}" SmallImage="{Binding SmallImage}" LargeImage="{Binding LargeImage}"> <telerik:RadRibbonSplitButton.DropDownContent> <telerik:RadContextMenu ItemTemplate="{StaticResource MenuItemTemplate}" ItemsSource="{Binding SplitSubButtons}" VerticalAlignment="Top"> <telerik:RadContextMenu.ItemContainerStyle> <Style TargetType="telerik:RadMenuItem"> <Setter Property="Icon"> <Setter.Value> <Image Source="{Binding Path=SmallImage}"/> </Setter.Value> </Setter> </Style> </telerik:RadContextMenu.ItemContainerStyle> </telerik:RadContextMenu> </telerik:RadRibbonSplitButton.DropDownContent> </telerik:RadRibbonSplitButton> </DataTemplate><telerik:RadRadialGauge Width="420" Height="300" telerik:StyleManager.Theme="Metro"> <telerik:RadialScale Min="0" Max="60" LabelRotationMode="None" LabelOffset="0.1" RangeLocation="Outside" MajorTickLocation="OverCenter" MajorTickBackground="#FFE7F1F6" MinorTickBackground="#FFE7F1F6" MiddleTickBackground="#FFE7F1F6" MajorTickStep="10" LabelLocation="Outside" Fill="#FFE7F1F6"> <telerik:RadialScale.Indicators> <telerik:BarIndicator x:Name="radialBar" Value="30" Background="#66bc29" telerik:ScaleObject.Location="Outside" telerik:ScaleObject.Offset="0.5" /> <telerik:Pinpoint Background="#79a9c0" BorderBrush="#FFF7F9FB" MinWidth="125" MinHeight="125" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" StrokeThickness="5" Margin="0" Padding="0" /> </telerik:RadialScale.Indicators> </telerik:RadialScale></telerik:RadRadialGauge>