Dual Listbox not working with Template

When I use an ListBoxItemTemplate 

the remove all and the remove function do not work correctly. The items remain in the list or get removed only partly 



https://blazorplayground.syncfusion.com/hZhxDRMizycqFCIF

Image_8276_1781181791068

    <SfListBox TValue="string[]" Scope="scope1" DataSource="@GroupB" TItem="CountryCode" @attributes="listbox2Attr">
        <ListBoxFieldSettings Text="Name"></ListBoxFieldSettings>
       <ListBoxTemplates TItem="CountryCode">
        <ItemTemplate>
            <div class="list-wrapper">
                <span class="text">@((context as CountryCode).Name)</span>
               
            </div>
        </ItemTemplate>
    </ListBoxTemplates>
    </SfListBox>



3 Replies

JA Jafar Ali Shahulhameed Syncfusion Team June 15, 2026 02:27 PM UTC

Hi Matthias,


Thank you for your patience.


We would like to clarify our understanding of the issue by explicitly outlining the exact steps we performed and the behavior observed. We have tested the below scenario in your shared sample.


Tested scenario:

  1. From the left ListBox (Group A)
    • We selected items one by one
    • Then used the toolbar “MoveTo” option to move those selected items to the right ListBox (Group B)
  2. After moving a few items to the right ListBox (Group B)
    • We then clicked the toolbar option “MoveAllFrom” on the right ListBox (Group B)
    • This action is expected to move all items from Group B back to Group A


Observed Behavior

  • Instead of moving all items from Group B to Group Aonly a single item was moved back.
  • The remaining items stayed in the right ListBox (Group B).


Could you please confirm whether this is the exact scenario you are facing:

  • Items moved one by one from Group A (left) to Group B (right)
  • Then using MoveAllFrom on Group B (right)
  • Resulting in only partial movement (only one item instead of all)


We have also attached the GIF for your reference,

GIF:



Are you experiencing the issue in a different action (for example: Remove, RemoveAll, MoveAllTo, etc.)?


Once we have your confirmation, we will proceed with deeper analysis and provide the appropriate guidance or fix.


Looking forward to your confirmation.


Regards,

Jafar Ali S



MK Matthias Krüger June 15, 2026 02:30 PM UTC

Hi Jafar,


yes, that  exactely descripes the issue.


best regards

Matthias




JA Jafar Ali Shahulhameed Syncfusion Team June 18, 2026 12:51 PM UTC

Hi Mathias,                                                   


We would like to inform you that we have considered the mentioned behavior as a bug from our end. Fix for this issue will be included in the upcoming patch release scheduled on end of July 7, 2026.

  

You can track the status of bug through the below feedback,

Feedbackhttps://www.syncfusion.com/feedback/74590/listbox-component-moveallto-behavior-breaks-with-itemtemplate-functionality-after


Check out the shared details and get back to us if you need further assistance.


Regards,

Jafar Ali S


Loader.
Up arrow icon