Starts in:
2 DAYS
2 HRS
58 MIN
14 SEC
Starts in:
2 D
2 H
58 M
14 S
Open Closed

How to show extra details on button click using datagrid #801


User avatar
0
safi created

Hi

I am using blazorise datagrid and added custom button into it. I need to show extra details into datagrid while clicking on that button. So these details should come in between selected and next rows so can you please suggest me for this.

Thanks,


1 Answer(s)
  • User Avatar
    0
    mladen.macanovic created

    Please look at the Blazorise to learn how to use a DetailRowTemplate https://blazorise.com/docs/extensions/datagrid/#detailrowtemplate

    To control the visibility of DetailRowTemplate you can use DetailRowTrigger handler. Once youz click on your button you set the flag that will be used by the DetailRowTrigger handler.

    Example:

    Task OnButtonClick()
    {
      someFlag = true;
      return Task.CompletedTask;
    }
    

    and

    DetailRowTrigger="@((item)=>item != null && someFlag == true)"
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06