Skip to main content
All docs
V24.1

DxDocumentViewerCallbacksBase<TModel, TEvents>.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.v24.1.JSBasedControls.Common.dll

NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls.Common

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