try to use template but it work just for pre add items

whem i try to add more items to the listbox it display the item with no template.

            <SfListBox @ref="selectedListBoxRef" ID="listbox2" DataSource="@selectedQuestionsList" TItem="QuestionData" AllowDragAndDrop="true" Height="330px" TValue="string[]">
                <ListBoxFieldSettings Text="text"></ListBoxFieldSettings>
                <ListBoxSelectionSettings Mode="SelectionMode.Single"></ListBoxSelectionSettings>
                <ListBoxEvents TValue="string" ValueChange="selectSelectedCurrentItem"></ListBoxEvents>
                <ListBoxTemplates TItem="QuestionData">
                    <ItemTemplate>
                        <div class="list-wrapper">
                            <i class="far fa-chevron-square-right" @onclick="@moveFromList"></i>
                            <span class="text">@((context as QuestionData).text)</span>
                        </div>
                    </ItemTemplate>
                </ListBoxTemplates>
            </SfListBox>

using this methos : 
SfListBox<string[], QuestionData> selectedListBoxRef;
selectedListBoxRef.AddItems(selectedQuestion);

1 Reply 1 reply marked as answer

MV Madhan Venkateshan Syncfusion Team June 5, 2020 12:10 PM UTC

Hi Moshe Habas, 
 
Good day to you. 
 
We can reproduce the reported issue in our end. We have confirmed that the issue is defect and logged a defect report for the same. The fix for this issue is estimated to be available on Volume 2 release, which is expected to be available by mid of July 2020 and appreciate your patience until then. You can track the same through the below feedback link. 
 
 
Regards, 
Madhan V 


Marked as answer
Loader.
Up arrow icon