ASPxClientReportDesigner.GetPropertyInfo(String, String) Method

Returns information about the specified property of the specified control.

Namespace: DevExpress.XtraReports.Web.Scripts

Assembly: DevExpress.XtraReports.v18.1.Web.Scripts.dll

Syntax

public ASPxDesignerElementSerializationInfo GetPropertyInfo(
    string controlType,
    string path
)

Parameters

Type Name Description
String controlType

A string that specifies the control type.

String path

A string that specifies the path to the property.

Returns

Type Description
ASPxDesignerElementSerializationInfo

An object that provides property information.

Call the GetPropertyInfo to obtain information about a required property of a report or its element.

The example below demonstrates how to use this method, and then customize properties of a report and label control.

<script type="text/javascript" id="script">
function init(s, e) {
    var info = s.GetPropertyInfo("DevExpress.XtraReports.UI.XtraReport", ["Border Color"]);
    info.disabled = true;

    info = s.GetPropertyInfo("DevExpress.XtraReports.UI.XtraReport", ["Watermark", "Image Alignment"]);
    info.visible = false;

    info = s.GetPropertyInfo("DevExpress.XtraReports.UI.XtraReport", "Export Options.CSV Export Options.Separator");
    info.visible = false;

    info = s.GetPropertyInfo("XRLabel", "Can Grow");
    info.disabled = true;
}
</script>

<dx:ASPxReportDesigner ID="ASPxReportDesigner1" runat="server">        
    <ClientSideEvents Init="init"/> 
</dx:ASPxReportDesigner>