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,
Is it possible to have add the items on the WebDropDown on aspx and also have it on Form.aspx.cs? Or is it going to be redundant?
Hello Andrea ,
I’ve tested the described scenario on my side.
The items of the WebDropDown are added dynamically and when a new item is selected and the “Apply” button is clicked a different data source is applied to the grid based on the current value.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version 14.1: 14.1.20141.2011.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://ko.infragistics.com/support
It didn't solve it. It still doesn't work.
Ok. In order to get the current text of the editor you need to get the CurrentValue property.
Asuming that cboProductGroup is a WebDropDown then to get the current selected value the code would be:
string strProductGroup =cboProductGroup. CurrentValue;
Let me know if that solves your issue.
Hi there Maya,
Yes, that is exactly what I meant. When the item on cboProductGroup is selected, it doesn't return the exact result I want for the Grid View to display. I maintained the Grid View using asp.