1 答案
-
0
Please look at the Blazorise to learn how to use a
DetailRowTemplate
https://blazorise.com/docs/extensions/datagrid/#detailrowtemplateTo control the visibility of
DetailRowTemplate
you can useDetailRowTrigger
handler. Once youz click on your button you set the flag that will be used by theDetailRowTrigger
handler.Example:
Task OnButtonClick() { someFlag = true; return Task.CompletedTask; }
and
DetailRowTrigger="@((item)=>item != null && someFlag == true)"