Hi Admir,
We reviewed your query and it seems that you want to hide the operator dropdown
in the menu filter for a particular column when using a custom component in
that column. You can achieve this requirement using CSS styles. Please refer to
the code snippet and sample for reference.
Sample : https://blazorplayground.syncfusion.com/embed/hNVzXlUNpTogGvqG?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5

|
TextAlign="TextAlign.Right"
Width="120"></GridColumn>
</GridColumns>
</SfGrid>
@if(flag == true)
{
<style>
.e-dialog .e-dlg-content .e-flm_optrdiv
{
display:none;
}
</style>
}
else if (flag == true)
{
<style>
.e-dialog .e-dlg-content .e-flm_optrdiv {
display: block;
}
</style>
}
@code
{
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public List<OrderData> GridData { get; set; }
SfGrid<OrderData>? Grid { get; set; }
bool flag = false;
protected override void OnInitialized()
{
GridData = OrderData.GetAllRecords();
}
public void FilterDialogOpeningHandler(FilterDialogOpeningEventArgs args)
{
if (args.ColumnName ==
"OrderDate")
{
flag = true;
}
else
{
flag = false;
}
}
|
Regards,
Naveen