New to Telerik UI for WPF? Download free 30-day trial

RadCalculatorPicker Getting Started

This tutorial will walk your through the creation of a sample application that contains RadCalculatorPicker and will show you how to:

  • Use RadCalculatorPicker in your project;

  • User RadCalculatorPicker as editing element;

For the purpose of this example, you will need to create an empty WPF Application project and open it in Visual Studio.

Assembly References

In order to use RadCalculator in your projects, you have to add reference to the following assemblies:

  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Input

Adding RadCalculatorPicker to the Project

  • Create a new WPF project;

  • Add references to the assemblies Telerik.Windows.Controls and Telerik.Windows.Controls.Input;

  • Add the RadCalculatorPicker as demonstrated in Example 1

Example 1: Defining RadCalculator Picker

<UserControl x:Class="RadCalculatorPicker.MainPage" 
             mc:Ignorable="d" d:DesignHeight="700" d:DesignWidth="700">    
    <Grid x:Name="LayoutRoot" Background="White" > 
        <telerik:RadCalculatorPicker Height="30" Width="200" />      
Now if you run the application, you will have RadCalculatorPicker:

Figure 1: Defining RadCalculatorPicker

Rad Calculator Picker-Basic

Use RadCalculatorPicker as Editing Element

RadCalculatorPicker can be embeded as an editing element. In this case we will define it in a CellEditTemplate for a column in RadGridView. For this example we will create a simple grid and customize one of its columns:

Example 2: Using RadCalculatorPicker as a cell editor of RadGridView

<telerik:RadGridView Name="clubsGrid" CanUserFreezeColumns="False"  
                     ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" 
                     ItemsSource="{Binding Clubs}" 
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>                 
        <telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}"  
                    <telerik:RadCalculatorPicker Value="{Binding StadiumCapacity,Mode=TwoWay}" /> 
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Established}" 

Once we start editing the column we have customized, we will get the following editor

Figure 2: Using RadCalculatorPicker as a cell editor of RadGridView

Rad Calculator Picker-Integration With Rad Grid View

See Also

In this article