CheckBox filtering type and GridForeignColumn

BranchesDataSource contains seven elements.

The error is that in CheckBox mode in GridForeignColumn, I can only see some of the entries (in this case, only one, but there should be seven).

If I change the mode to Menu, everything works correctly.


<GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.CheckBox"></GridFilterSettings>

<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Normal"></GridEditSettings>

<GridColumns>

    <GridColumn Field="@nameof(Broker.Id)" HeaderText="Id" IsPrimaryKey="true" Visible="false" Width="120"></GridColumn>

    <GridColumn Field="@nameof(Broker.BrokerName)" HeaderText="Name" Width="120"></GridColumn>

    <GridColumn Field="@nameof(Broker.Username)" HeaderText="Username" Width="120"></GridColumn>

    <GridColumn Field="@nameof(Broker.Active)" HeaderText="Active" Width="120"></GridColumn>

    <GridForeignColumn TValue="Branch"

               Field="@nameof(Broker.Branch)"

               ForeignKeyField="@nameof(Branch.Id)"

               ForeignKeyValue="@nameof(Branch.Branch1)"

               HeaderText="Branch"

               EditType="EditType.DropDownEdit"

               Width="120"

               AllowFiltering="true"

               ForeignDataSource="@BranchesDataSource"

               FilterSettings="@(new FilterSettings { Operator = Operator.Equal })">


        <Template>

            @{

                var item = context as Broker;

                var foundedLender = BranchesDataSource.FirstOrDefault(b => b.Id == item?.Branch)?.Branch1 ?? string.Empty;

            }

            <span>@foundedLender</span>

        </Template>

        <EditTemplate>

            @{

                var item = context as Broker;

                var isEditingLender = item?.Branch is null;

                var placeholder = isEditingLender ? "Select branch name" : BranchesDataSource.FirstOrDefault(b => b.Id == item?.Branch)?.Branch1;

            }

            <SfDropDownList Placeholder=@placeholder

                ID="@nameof(Broker.Branch)"

                TItem="Branch"

                TValue="int?"

                DataSource="@(BranchesDataSource)"

                AllowFiltering="true"

                SortOrder="Syncfusion.Blazor.DropDowns.SortOrder.Ascending"

                @bind-Value="@item.Branch"

                FilterType="Syncfusion.Blazor.DropDowns.FilterType.Contains">

                <DropDownListFieldSettings

                    Value="@nameof(Branch.Id)"

                    Text="@nameof(Branch.Branch1)">

                </DropDownListFieldSettings>

                <DropDownListEvents

                    TItem="Branch"

                    TValue="int?"

                    ValueChange="@((args) => BranchValueChanged(args, item))">

                </DropDownListEvents>

            </SfDropDownList>

        </EditTemplate>

</GridForeignColumn>


Attachment: Screenshot_20250826_142323_3aa196f2.png

1 Reply

GR Guhanathan Ramanathan Syncfusion Team September 1, 2025 02:21 PM UTC

Hi  Julian Zayats,

Greetings from Syncfusion,

 

We are unable to reproduce the reported issue when testing in latest version. For your reference, we have shared a simple sample. To proceed with investigating the reported problem, we would need some additional clarification from your end. Please share the below details to proceed further at our end.

 

·                To analyze the reported issue, could you please share a simple and reproducible sample that demonstrates the problem? This will assist us in identifying the issue more efficiently and providing a resolution

·                Kindly share your attempt to replicate the issue using the attached simple sample

·                Share a video demonstration of the issue with a detailed explanation. This will greatly assist us in understanding the problem

 

Above-requested details will be very helpful in validating the reported query at our end and providing a solution as early as possible. Thanks for your understanding.


Sample:https://blazorplayground.syncfusion.com/embed/BDrSZuNsTxHPfWak?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5

 


 

Regards,

Guhanathan  


Loader.
Up arrow icon