skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • MCP Servers
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    MCP Servers

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class CalculatedField

Represents an user-defined field in a DataSource.

Inheritance
System.Object
CalculatedField
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll

Syntax

public class CalculatedField : INotifyPropertyChanged
Remarks

Calculated fields enable creating custom data columns that are computed at runtime using expressions that can reference other fields in the data source. These fields support property change notifications and can be used in data binding scenarios to create dynamic, derived data values for reporting purposes.

Constructors

CalculatedField()

Initializes a new instance of the CalculatedField class with default values.

Declaration
public CalculatedField()

CalculatedField(String)

Initializes a new instance of the CalculatedField class with the specified name.

Declaration
public CalculatedField(string name)
Parameters
System.String name

The name of the calculated field.

CalculatedField(String, Type)

Initializes a new instance of the CalculatedField class with the specified name and data type.

Declaration
public CalculatedField(string name, Type dataType)
Parameters
System.String name

The name of the calculated field.

System.Type dataType

The expected data type of the calculated field's value.

CalculatedField(String, Type, String)

Initializes a new instance of the CalculatedField class with the specified name, data type, and expression.

Declaration
public CalculatedField(string name, Type dataType, string expression)
Parameters
System.String name

The name of the calculated field.

System.Type dataType

The expected data type of the calculated field's value.

System.String expression

The expression formula that computes the field's value.

Properties

DataType

Gets or sets the expected data type of the value produced by the calculated field's expression.

Declaration
public Type DataType { get; set; }
Property Value
System.Type

Remarks

This type information helps with type safety and proper data conversion during expression evaluation. If not specified, the type will be inferred from the expression evaluation at runtime.

Expression

Gets or sets the expression formula that defines how the calculated field's value is computed.

Declaration
public string Expression { get; set; }
Property Value
System.String

Remarks

The expression can reference other fields in the data source using syntax like Fields.FieldName and supports various operators, functions, and constants. Changes to this property trigger property change notifications for data binding support.

Name

Gets or sets the unique identifier name of the calculated field.

Declaration
public string Name { get; set; }
Property Value
System.String

Remarks

This name is used to reference the calculated field in expressions and data binding operations. The name should be unique within the data source's calculated fields collection.

Events

PropertyChanged

Occurs when a property value changes, supporting data binding and change tracking scenarios.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler

Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.