Hi,
I have a datagrid that allows filtering. I'm using composite columns for a lot of the data shown, but doing so seems to stop filtering from working? The only column in the grid that is not part of a composite column filters ok.
The only column that filtering seems to work on is Available Quantity?
Cheers
Reg
enchev
May 15, 2024, 12:19pm
2
There is no known problem with composite columns and filtering:
I can see that the example works ok, but I cannot see why my code isn't. Does it potentially make a difference that my grid is on a dialogue screen? Can you please see if there's anything obvious in my markup (I've taken most of the columns out).
<RadzenStack Gap="1rem" Orientation="Orientation.Vertical" JustifyContent="JustifyContent.SpaceBetween" Style="height: 100%;">
<RadzenStack>
<RadzenDataGrid @ref="availablestockgrid" AllowGrouping=true AllowCompositeDataCells="true" AllowSorting="true" AllowFiltering="true" FilterPopupRenderMode="PopupRenderMode.OnDemand" FilterMode="FilterMode.Advanced" PageSize="5" AllowPaging="true"
Data="@availableStocks" ColumnWidth="300px" LogicalFilterOperator="LogicalFilterOperator.Or" Style="height:420px" class="m-4" HideGroupedColumn="false" >
<Columns>
<RadzenDataGridColumn Property="Organisation.ORG_Name" Title="Supplier" Width="190px" Filterable="true" >
<Columns>
<RadzenDataGridColumn Property="Organisation.ORG_Name" Title="Branch" />
<RadzenDataGridColumn Property="Consignment.CON_Reference" Title="Consignment" >
</Columns>
</RadzenDataGridColumn>
<RadzenDataGridColumn Property="STK_QuantityAvailable" Title="Available Quantity" Width="130px" Filterable="true" />
<RadzenDataGridColumn Property="STK_CON_Id" Title="Consignment Id" Visible="false" />
</Columns>
</RadzenDataGrid>
</RadzenStack>
<RadzenStack Orientation="Orientation.Horizontal" JustifyContent="JustifyContent.Start" Gap="0.5rem">
<RadzenButton Click="@((args) => dialogService.Close(null))" ButtonStyle="ButtonStyle.Secondary" Variant="Variant.Flat" Text="The Stock I want is not available" Style="width: 300px" />
</RadzenStack>
</RadzenStack>
Cheers
Reg
Hi @SolutionJ ,
I don't see anything wrong in your code. Try to replicate your case using our demos - they are editable.
Thanks, it seems like it was related to Property settings on the columns.
Cheers
Reg