Hello again....
I have a a WebDropdown that has been loaded with data from a table. What are the properties that I need to use to get and restore the selected item in the WebDropdown.
Hi Angel,
Before I contact Development Support I was wondering if you can have a look at my control? I've attached a demo project containing the control, though I had to remove the ig_res directory as it forced the attachment to exceed the upload limit.
Once the project is up and running, using the dropdown select a page number, this will become highlighted. Then if you select one of the buttons, the displayed value will change in the dropdown (good), though if you select the dropdown (displaying the full list) you'll notice the highlighted item doesn't change to match the displayed value.
Is this a bug? Or am I incorrectly modifying the dropdown in my code?
Thanks,
Ian.
the build number I use is internal, but it includes everything that is there in the latest 9.1 hotfix (regarding the dropdown functionality I mean). If i change the version number with the latest 9.1 hotfix, it still works fine.
I suggest you contact Development Support, since there may be something i am missing from the scenario.
Thanks again,
Angel
Any progess with this issue?
Thanks for the reply and the attached example.
Unfortunately the example provided isn't working as I'd expect it to. I've also recoded your example in VB.NET and it still isn't working.
I did notice that you have referenced "Infragistics35.Web.v9.2" whereas I am referencing "Infragistics35.Web.v9.1". I have downloaded the latest NetAdvantage for .NET (2009 vol 2) but the download contains "NetAdvantage_ASPNET_20091.exe" which seems to be the same package that was in 2009 vol 1.
To updated to "Infragistics35.Web.v9.2" is there something else I should be doing? Maybe this is will resolve my issue?
Hi Ian,
I have prepared a WebSite (attached) which has 2 dropdowns, in one items are added in markup, in the second items are added as you have shown above (using a for loop). I set SelectedValue after the items are added. I don't call DataBind() explicitly in that case. Not sure if this will work for you, please let me know if it doesn't.
You don't need to bind the control to a datasource to get SelectedValue to work.
P.S: When you bind to data source, and use SelectedValue, make sure to have ValueField in the items binding set to the correct field in the data source.