All docs
V20.1
20.2 (EAP/Beta)
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 JavaScript function that handles the Web Document Viewer's CustomizeParameterLookUpSource client-side event.

Namespace: DevExpress.Blazor.Reporting

Assembly: DevExpress.Blazor.Reporting.v20.1.dll

Declaration

[Parameter]
public string CustomizeParameterLookUpSource { get; set; }
<Parameter>
Public Property CustomizeParameterLookUpSource As String

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 demonstrates how to sort look-up values for the parameter1 parameter based on its display values.

Use the items field to obtain look-up values and sort them with a custom sorting function. Pass the sorted array to the dataSource property to apply changes.

See Also