Telerik Forums
UI for WPF Forum
4 answers
111 views

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

  • Click on any buttons presented on grid.
  • Getting row and column count.
  • Getting data in the cells.

Thanks,
Ajay




Vikas
Top achievements
Rank 1
 answered on 02 May 2012
8 answers
229 views
Hi there,

How would you style the slices on a PieChart programatically?

assume this code...
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)

I would like to have say... slice 1 blue, slice 2 yellow, slice 3 red...


Thanks and best regards,
Petar Marchev
Telerik team
 answered on 02 May 2012
0 answers
92 views
Hi

I have master and detail gridview, I must disable master gridview, when user try to modify detail.
Disable master gridview work fine, but user can't see which row is selected.
I want set selected row color even gridview is disable.

How can i do it?

Thanks in advanced
hamid
Top achievements
Rank 1
 asked on 02 May 2012
2 answers
115 views
Hello!

How to use IDataErrorInfo with DataForm.

Thanks.
Pavel Pavlov
Telerik team
 answered on 02 May 2012
1 answer
214 views

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.

Vanya Pavlova
Telerik team
 answered on 02 May 2012
3 answers
68 views
Hi,

I have a RadTreeListView (version 2011.2.712.35) whose ItemsSource is a custom implementation of INotifyCollectionChanged. The custom version is intended to be more efficient than ObservableCollection by bundling multiple sequential Adds or Removes into a single NotifyCollectionChanged event. The single event has a list of NewItems or OldItems with more than one item in it.

The RadTreeListView seems unable to handle this event correctly. In response to an Add event with two items, it only updates the display with the first of the items. In response to an Add event with 5 items, only the first two appear in the display.

Is this a known problem? Has it been fixed in a later version than the one I have?

Thanks,
   Bob
Pavel Pavlov
Telerik team
 answered on 02 May 2012
1 answer
212 views
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.
Oliver
Top achievements
Rank 1
 answered on 02 May 2012
4 answers
154 views
Hi,

When the RadRibbonView.IsMinimized is set to true the ribbon is minimized. Clicking on a tab opens a popup to display the group and items.  Is there a way to dismiss the popup when a user clicks on an item in the tab, similar to the behavior in Microsoft's ribbon? Currently, only when the user clicks outside of the tab, the popup will go away and return to the minimized ribbon state.  I found the RadRibbonView.IsMinimizedPopupOpen, but this property cannot be set.  Any ideas?

Thanks,
Trang
Trang
Top achievements
Rank 1
 answered on 01 May 2012
5 answers
259 views

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>

As soon as I have more that one item, only the last icon is shown.

Any advice?

Regards,

Nic
Trang
Top achievements
Rank 1
 answered on 01 May 2012
1 answer
172 views
Hello,

I'm trying to make my gauge resmeble something like this: http://i48.tinypic.com/20qf5d.jpg but I'm having a couple of issues.

- How can I center the pin point and hold a textblock / label within it?
- How to add custom labels (e.g. just have 0 Min / 1 Hour)
- As you can see in my code below I have a bar indicator but for some reason it dosen't show up

Here is my code so far:

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

And here is how it looks so far: http://i45.tinypic.com/2po7cj6.jpg

It's getting there slowly so would appreciate some help on my questions above!
Craig Mellon
Top achievements
Rank 1
 answered on 01 May 2012
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
Book
FileDialogs
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
Rating
SplashScreen
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?