Hi there,
How do I add an item when I'm already on Form.aspx.cs?
cboOriginalBrand.Items.Add("*"); doesn't work anymore.
Hi Maya,
When I try to type WebDropDown1.Items.Add(new DropDownItem() { Text = "Some Text" }); the new DropDownItem doesn't appear. Instead of DropDownItem, it calls DropDownList
Hello Andrea ,
Thank you or the clarification.
The WebDropDown’s Items Add() method accepts objects of type DropDownItem. So you would need to create a new DropDownItem with some text and add it to the Items collection. For example:
WebDropDown1.Items.Add(new DropDownItem() { Text = "Some Text" });
Let me know if you have any questions.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support
Thank you for posting in our forum.
Do you mean when the page is already loaded in the browser?
If so you can add it on the client side using java script:
http://es.infragistics.com/community/forums/p/78574/398781.aspx#398781
Let me know if you perhaps meant something different.