A Webdropdown on my contains multiple selected items. An user action causes the bespoke Webdropdown to be databound again, after which it contains a new list of items. Now i want to restore the items that were selected before this databinding, however it can be that the newly databound wdd does no longer contain items that were selected before. Thus i only want to "restore" the selection of items that are present in the newly databound wdd. How do I select these items that were selected before and select them again if they are present after databinding ?
I am glad that this is helpful to you. Thank you for posting in the community.
I realized this, however if i use the this. keyword everything works just fine
Hello ,
I have retested the sample and works fine on my configuration, for both scenarios. Please make sure, that the WebDropDown IDs in the markup have names ID="WebDropDown1" and ID="WebDropDown3". In copy/paste scenarios it is possible that visual studio rename some of the IDs. Thank you for contacting Infragistics Developers Support!
Thanks for your suggestions, but your select all code sample throws a null exception error for the items of the particular webdropdown when i ran it (DropDownItemCollection Items = WDD3.Items;)
Hello,
You could take advantage of our online samples. Here is a sample demonstrating the Client Events Fired when Multi selection is enabled, as well as the collections of the selected items.http://es.infragistics.com/products/aspnet/sample/drop-down/multi-selectionI hope it will be of use to you. Please contact me if further assistance is required.