Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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