ParameterModel.ValueTemplate Property
Specifies the editor template for the parameter.
Namespace: DevExpress.Blazor.Reporting.Models
Assembly: DevExpress.Blazor.Reporting.v24.2.Viewer.dll
NuGet Package: DevExpress.Blazor.Reporting.Viewer
Declaration
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