ListBox filter not updating after drop

Hi
When filtering a listbox, then moving a item by dragging it to another listbox, and then trying to change the filter, a bug occurs : the filtered elements doesn't appear back.
Step to reproduce:
- filter "listbox-2" with, for example, "1"
- move item "Element n°10" to "listbox-1" (it will not work because of the unset scope)
- remove the filter of "listbox-2" (nothing happens, elements 2, 3, 4, 5, ... doesn't appear back)
Code:

   
               TItem="Element"
               TValue="int[]"
               DataSource="@Elements1"
               AllowDragAndDrop="true"
               Height="100%">
       
   
   
               TItem="Element"
               TValue="int[]"
               DataSource="@Elements2"
               AllowDragAndDrop="true"
               AllowFiltering="true"
               FilterType="Syncfusion.Blazor.DropDowns.FilterType.Contains"
               Height="100%">
       
   

@code {
    public class Element
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }

    public List Elements1 = new();
    public List Elements2 = Enumerable.Range(1, 15).Select(v => new Element { Id = v, Name = "Element n°" + v }).ToList();

    protected override void OnAfterRender(bool firstRender)
    {
        base.OnAfterRender(firstRender);
        if (firstRender) StateHasChanged(); // Re-render component to update the ListBox component Scope references in each connected ListBox.
    }
}

5 Replies 1 reply marked as answer

TS Thiken Samuel May 25, 2021 09:39 AM UTC

I can't submit my edit, so I post a new message as the code didn't show as I wanted... (Please make a "code" block in your forum editor...................)





GK Gayathri KarunaiAnandam Syncfusion Team May 27, 2021 04:01 AM UTC

Hi Thiken, 

We have checked your reported query and we can reproduce this issue in our end. We have confirmed this as an issue from our side. We have logged a bug report for this. You can track its status from the below feedback link. 


The fix will be provided in our patch release scheduled on June 9th, 2021.We appreciate your patience until then. 

Regards, 
Gayathri K 



GK Gayathri KarunaiAnandam Syncfusion Team July 1, 2021 02:24 PM UTC

Hi Thiken,  
  
Thanks for the patience.  
  
We are glad to announce that our weekly patch release (19.1.0.67) is rolled out. We have included the fix for your issue [listbox-filter-items-are-not-updating-after-drop ] in this release. So, we suggest you upgrade our Syncfusion packages to our latest version to resolve this issue in your end. (19.1.0.67).  
  
Please let us know if you need further assistance on this.  
  
Regards,  
Gayathri K  



TS Thiken Samuel July 19, 2021 04:18 PM UTC

Hi


I've updated the Syncfusion package, but the issue isn't fixed



GK Gayathri KarunaiAnandam Syncfusion Team July 20, 2021 03:35 PM UTC

Hi Thiken,  
  
We are deeply regret for the inconvenience caused.   
  
We have fixed this issue and ensured all testcases. So, we are unable to move this fix into previous patch release. We have created a custom patch for the reported query and the same can be downloaded below link.  
  
  
Hence, we are working on that with high priority, and we have planned to move this our upcoming patch release which will be scheduled on end of July 27th, 2021.  
  
So, we suggest following below steps then upgrade our Syncfusion custom packages.  
      
      
  1. Due to the old Browser/NuGet cache.  
  2. https://blazor.syncfusion.com/documentation/common/how-to/upgrade-syncfusion-components-to-latest-version/#cache-problem 
  3. Outdated custom scripts referred in the application.  
      
Also, could you please ensure the problem after clearing the browser/NuGet cache or run the application using incognito window of the browser.      
  
Regards,  
Gayathri K 



Marked as answer
Loader.
Up arrow icon