All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DxDocumentViewerCallbacks.CustomizeParameterLookUpSource Property

Specifies the handler for the CustomizeParameterLookUpSource client-side event that allows you to specify look-up values for the parameter editor.

Namespace: DevExpress.Blazor.Reporting

Assembly: DevExpress.Blazor.Reporting.v21.1.JSBasedControls.dll

Declaration

[Parameter]
public string CustomizeParameterLookUpSource { get; set; }

Property Value

Type Description
String

The name of a JavaScript function used to handle the CustomizeParameterLookUpSource event.

Remarks

The CustomizeParameterLookUpSource event occurs each time a look-up editor is created for a report parameter.

The handler function receives two parameters - the first parameter is the client-side Document Viewer (the event sender) and the second parameter is an object with the following properties and methods:

  • parameter
    An object that stores information about a parameter.

  • items
    A collection of look-up parameter values.

  • dataSource
    The data source that supplies look-up values to the parameter editor.

The following example reverses the order of look-up values in the parameter editor:

window.ReportingViewerCustomization = {
    onCustomizeParameterLookupSource: function (s, e) {
        if (e.parameter.name == 'parameter1') {
            e.items.reverse();
            e.dataSource = new s.previewModel.dx.data.DataSource({ store: e.items });
        }
    },
}
See Also