I read in previous posts that this was in development for 11.1. We are using 14.1. Is it possible to delete all the items and add multiple new values on the client without an AJAX postback in the WebDropDown? Thanks.
Hello Autumn,
Thank you for using our community.
I recommend you to see the following forum thread:
http://ko.infragistics.com/community/forums/p/78574/398781.aspx#398781
If you wanted to add multiple items you should do this on the server side. If you are looking to populate the dropdown upon selection from previous dropdown I recommend you look into cascading:
http://ko.infragistics.com/samples/aspnet/drop-down/cascade
http://ko.infragistics.com/samples/aspnet/drop-down/cascade-alternative
Here are more resources that you might find useful:
http://help.infragistics.com/Doc/ASPNET/Current/CLR4.0?page=WebDropDown~Infragistics.Web.UI.DropDownItemCollection_members.html
In case someone is looking to add multiple items to a WebDropDown on the client-side, here is where I found my solution.
http://www.stlcoder.com/lessonslearned/dynamic-bindings-to-infragistics-webdatagrid-dropdownproviders
Hi Autumn,
I have the same problem with adding multiple Items to a webDropDown.
You link is not working anymore.
Can you give me a hint?
Best Regards
Achim
This is what I ending up doing on the client-side script.
// Clear out the DDL
ddl.innerHTML = "";
Wrote a function to add on option to the DDL
//*******************************************************
// Add option to DDL
function addOption(control, text, value) {
var option;
option = document.createElement('option');
option.value = value;
option.text = text;
control.add(option);
}
Call the function when I needed to add an item
addOption(ddl, 'User Defined', 'UD');
I hope this helps.