skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue 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 Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    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 ReportParameter

Represents a report parameter.

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

Syntax

public class ReportParameter : IReportParameter, INotifyPropertyChanged

Constructors

ReportParameter()

Initializes a new instance of the ReportParameter class.

Declaration
public ReportParameter()

ReportParameter(String, ReportParameterType, Object)

Initializes a new instance of the ReportParameter class.

Declaration
public ReportParameter(string name, ReportParameterType type, object value)
Parameters
System.String name

ReportParameterType type

System.Object value

Properties

AllowBlank

Gets or sets a value that indicates whether an empty string is a valid value for the parameter. Only for parameters of Type String.

Declaration
public bool AllowBlank { get; set; }
Property Value
System.Boolean

Implements
IReportParameter.AllowBlank

AllowNull

Determines if the parameter allows no value to be passed from it's editor.

Declaration
public bool AllowNull { get; set; }
Property Value
System.Boolean

Implements
IReportParameter.AllowNull
Remarks

Only if this property is set to false null ( Nothing in VB) are considered as valid values of the parameter.

AutoRefresh

Determines whether to trigger the report preview after changing the value for a parameter. Applies only for visible parameters.

Declaration
public bool AutoRefresh { get; set; }
Property Value
System.Boolean

Implements
IReportParameter.AutoRefresh
Remarks

If this property is set to true, the report viewer will trigger the report preview automatically when the parameter value is changed. The parameter should be visible in order to auto preview the report.

AvailableValues

Gets an object that defines a set of valid values the parameter can accept from.

Declaration
public ReportParameterAvailableValues AvailableValues { get; }
Property Value
ReportParameterAvailableValues

Implements
IReportParameter.AvailableValues
Remarks

The available values, or valid values, are a set of predefined values which are acceptable as value of the parameter. Each available value may have label that will be displayed if the parameter is visible.

Mergeable

Gets or sets a value indicating whether this parameter should be merged with identical parameters from other reports when this report is part of a ReportBook.

Declaration
public bool Mergeable { get; set; }
Property Value
System.Boolean

Implements
IReportParameter.Mergeable
Remarks

Controls parameter merging in ReportBook. The default value of the Mergeable property is true. Set the Mergeable property to false if you want to prevent a parameter from being merged with its equivalent ones.

MultiValue

Determines if the parameter can hold more then one value.

Declaration
public bool MultiValue { get; set; }
Property Value
System.Boolean

Implements
IReportParameter.MultiValue
Remarks

If the value is set to true as a valid value of the parameter is accepted or System.Collections.IEnumerable of values of the specified Type of the parameter. Parameters with MultiValue turned on are mainly used with the IN logical operator.

Name

Gets or sets the name of the parameter. Used to access the parameter.

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

Implements
IReportParameter.Name
Remarks

Parameter names must be unique in the context of a single report. The name must be a valid identifier - may contain only digits (0-9), letters (a-z, A-Z), and underscore sign (_). Must begin with a letter or underscore.

Text

Gets or sets the text for the parameter's automatic UI displayed in the report viewer. Can be an Expression that evaluates to a string.

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

Implements
IReportParameter.Text
Remarks

The Text property specifies the text for the parameter to be displayed in the report viewer as prompt to the end user. If value for the property is not provided the Name of the parameter is used.

Type

Gets or sets the data type of the parameter.

Declaration
public ReportParameterType Type { get; set; }
Property Value
ReportParameterType

Implements
IReportParameter.Type
Remarks

Determines the type of the values. Acceptable values for each type are listed in ReportParameterType. The default parameter type is String.

Value

Gets or sets the value of the parameter. Can be an Expression that evaluates to an object, value of the allowed types, or System.Collections.IEnumerable containing values of the allowed types.

Declaration
public object Value { get; set; }
Property Value
System.Object

Implements
IReportParameter.Value

Visible

Determines whether automatic user interface (UI) prompting for values to be generated for the parameter.

Declaration
public bool Visible { get; set; }
Property Value
System.Boolean

Implements
IReportParameter.Visible
Remarks

Specifies whether the parameter will have UI in the parameters area. When at least one report parameter has the Visible property turned on, a parameter area is shown as part of the report viewer. If this property is set to false, the parameter must be populated programmatically or at design time.

Events

PropertyChanged

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.