Grid: Blazor server menu filter duplicates once

                        <FilterTemplate>

                            <SfDropDownList Placeholder="Status" ID="Status" @bind-Value="@((context as PredicateModel<string>).Value)" TItem="BugTrackerReportPublicDto" TValue="string" DataSource="@(_allPublicReports)">

                                <DropDownListFieldSettings Value="@nameof(BugTrackerReportPublicDto.Status)" Text="Status"></DropDownListFieldSettings>

                            </SfDropDownList>

                        </FilterTemplate>


        protected override async Task OnAfterRenderAsync(bool firstRender)

        {

            if (firstRender)

            {

                _allPublicReports = await _bugTrackerService.GetPublicTrackerData();

                StateHasChanged();

            }

        }


double.png

Note that the Status field is a string and I checked for trailing spaces but none were found. Is this because Blazor Server prerenders?


1 Reply

JP Jeevakanth Palaniappan Syncfusion Team July 19, 2021 01:49 PM UTC

Hi Carlo, 

Greetings from Syncfusion support. 

We have checked your query but we are quite unclear about your exact problem. We suspect that the dropdown data gets rendered twice. If this is your problem, we have checked this in the latest Syncfusion NuGet version(19.2.0.47) but we are unable to reproduce the reported problem from our end. Please find the validated sample and the screenshot showing the unique data’s rendered in the dropdown. 



 

If this is not your scenario, then kindly share us the below details which will be helpful for us to validate the problem you are facing. 

  1. Share us the Syncfusion NuGet version details.
  2. Share us more information on your query.
  3. Share us the simple issue reproducing sample or reproduce the issue in the above provided sample.
  4. Share us the video demo showing the problem you are facing.

Regards, 
Jeevakanth SP. 


Loader.
Up arrow icon