How to conditionally render button inside ColumnProperty in a DataTable model in nopcommerce 4.2

How to conditionally render button inside ColumnProperty in a DataTable model in nopcommerce 4.2

_mukulgarg_mukulgarg Posts: 1Questions: 1Answers: 0

gridModel.ColumnCollection.Insert(1, new ColumnProperty(nameof(OrderModel.CustomOrderNumber))
{
Title = T("Admin.Orders.Fields.CustomOrderNumber").Text,
Width = "200",
Render = new RenderButtonCustom(NopButtonClassDefaults.Success, "Export")
{

            OnClickFunctionName = "downloadExcelFile"
        }
    });
This discussion has been closed.