Edit this page


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

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

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

<Window x:Class="RadCalculatorPicker.MainWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&#13;             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&#13;             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"&#13;             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"&#13;             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"&#13;             xmlns:my="clr-namespace:RadCalculatorPicker"
             mc:Ignorable="d" d:DesignHeight="700" d:DesignWidth="700">   

    <Grid x:Name="LayoutRoot" Background="White" >
        <telerik:RadCalculatorPicker Height="30" Width="200" />         

Two lines of code are important here:

  • The import of the Telerik schema:

  • The declaration of the RadCalculator control inside the Grid:

<telerik:RadCalculatorPicker Height="30" Width="200" /> 

Now if you run the application, you have 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 as simple grid and customize one of its columns:

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

Rad Calculator Picker-Integration With Rad Grid View

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article