We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Working demo adding and removing elements from ListBox

Thread ID:

Created:

Updated:

Platform:

Replies:

147341 Sep 6,2019 11:06 AM UTC Sep 9,2019 12:36 PM UTC Blazor 1
loading
Tags: ListBox
Peter Benedix
Asked On September 6, 2019 11:06 AM UTC

Hello,

I hardly try to add and remove elements to a ListBox (or ListView) but it will not work. I have two ways:

Using binding with ObservableCollection:
- the UI refreshment is not useable
- removing elements is not working properly

Adding or removing directly from the ListBox (like in the API documentation):
- works for AddItem but RemoveItem is missing
- the DataSource will not update

So please could you send me a working demo please?

Thanks!


Sangeetha Priya Murugan [Syncfusion]
Replied On September 9, 2019 12:36 PM UTC

Hi Peter, 
 
Thank you for contacting syncfusion support. 
 
Query #1: Using binding with ObservableCollection: 
 
As we have mentioned in your previously updated forum. We have faced some issue while dynamically updating the datasource using observable collection in ListBox. And we have confirmed this a defect and this fix will be available in our next by-weekly release. You can track the status of this defect using below link from our feedback portal,  
 
 
Query #2: Adding or removing directly from the ListBox (like in the API documentation) 
 
We have checked your reported requirement and we have considered this as an improvement “Need to provide removeItems method in ListBox”. We have planned to include the fix in our upcoming by-weekly release. Which is expected to be available in mid of this month, we appreciate your patience until then. You can track the status of this defect using below link from our feedback portal,  
 
 
Please let me know if you have any questions. 
 
Regards, 
Sangeetha M 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon