Just finished migrating the DxDataGrid
in our application to DxGrid
.
Example:
Razor<DxGrid Data="@dataSource"
CssClass="simple-grid"
ShowFilterRow="false"
PagerVisible="false"
AllowSelectRowByClick="false"
SelectionMode="GridSelectionMode.Single"
PageSize="50">
<Columns>
<DxGridDataColumn TextAlignment="GridTextAlignment.Left" FieldName="@nameof(TicketInListViewModel.Id)" Caption="Ticket">
<CellDisplayTemplate>
<TicketInList Ticket="@((TicketInListViewModel)context.DataItem)" DataWasStored="@(async () => await handleDataWasStored())" BackUrl="@BackUrl"/>
</CellDisplayTemplate>
</DxGridDataColumn>
</Columns>
</DxGrid>
I'm using a CellDisplayTemplate
to completely provide my own content for each row.
In each row I'm using a Bootstrap Dropdown menu.
This worked perfectly well in DxDataGrid
.
After migrating to DxGrid
I discovered that the menu is clipped to the bounds of the owning cell of the DxGrid
.
I was able to achieve some improvements by defining some custom CSS:
Code.simple-grid { &.dxbl-grid { .dxbl-grid-table { > tbody > tr > td, > thead > tr > th { overflow: visible !important; } } } }
This works for all cell except the last one, where it seems other parent elements also have clipping configured (I assume some overflow: hidden
in the owning table or even higher in the DOM).
My question
How can I have a Bootstrap 5.x Dropdown menu in a DxGrid's CellDisplayTemplate
without the menu being clipped?