Skip to main content
All docs
V24.1

ParameterModel.ValueTemplate Property

Specifies the editor template for the parameter.

Namespace: DevExpress.Blazor.Reporting.Models

Assembly: DevExpress.Blazor.Reporting.v24.1.Viewer.dll

NuGet Package: DevExpress.Blazor.Reporting.Viewer

Declaration

public RenderFragment ValueTemplate { get; set; }

Property Value

Type Description
RenderFragment

Template content rendered on the page.

Remarks

The following code specifies a custom editor for the parameter:

void OnCustomizeParameters(ParametersModel parameters)
{
    var parameter = parameters.VisibleItems
        .Where(param => param.Name == "OrderIdParameter").FirstOrDefault();
    parameter.ValueTemplate =@<CustomCombobox Model=OrdersModel ParameterModel=ParameterModel />;
    ParameterModel = parameter;
    SubscribeParameters();
}
@* ... *@
See Also