Hi,
I have a simple webDropDown with 3 items in the list. I have included an event handler for wdd_ValueChanged. In that procedure I have a debug display of the event args e.NewValue, wdd.SelectedValue, wdd.SelectedItemIndex and wdd.SelectedItemCount
PROBLEM 1: When the WDD was originally placed on the page and tested, the SelectedItemCount changed from 1 to 2 after I selected a diferent item from the drop down and the SelectedValue continued to always display the ValueField value from the item that was selected the first time. This was acting like Enable Multiple Selection flag was set to true, but it was not..
As a test, I set the Enable Multiple Selection flag to true, ran my test and then set it back to false. After "flipping" this setting, the debug display in the wdd_ValueChanged event behaved correctly.
PROBLEM 2: As I indicated, there are just 3 items in the simple webDropDown (Clients, Carriers, Licensees). When the page is initially opened, first item "Clients" is displayed. The property wdd.SelectedItemIndex is set to 0 in code. If I select "Carriers", then the wdd_ValueChanged event fires. If I then select "Licensees", the wdd_ValueChanged event fires again. Now, if I select "Clients" (the first item in the list), the event wdd_ValueChanged event does not fire.
PROBLEM 3: This does not seem to be an issue yet, but if I use Quick Watch to look at the properties of the WDD when it is constructed (list items are added in server side code) the property wdd.ValueField has the assignment for the data source column "ID". But, when I set a breakpoint in the event wdd_ValueChanged and look at the properties for the WDD, the property wdd.ValueField is an empty string.
Thanks - NormD
Is there any chance that you can run my sample if I use the SQL AdventureWorks database with Windows Authentication? I would prefer to minimize the number of variables that differ in the sample as compared to my real application.
Hi Georgi,
I have begun to put together a sample, trying to keep it as small as possible. My application environment is using a SQL backend database with cascading update panels and grids in each panel that start being refreshed when the combo box slection changes. It will take me some time to find tables in the sample Nrthwind (Access) database that Infragistics typically uses for its research samples that will be suitable to demonstrate the problem with a similar page configuration. I don't know if that will make any difference.
FYI: If all that I have on a page is a WebDropDown, an Updae Panel and a text box that is in the Update Panel and refreshed when a WDD selection is changed, then the WDD_SelectionChanged event is firing OK for each of the choices, including the first item in the list.
I will add a new reply when I have a sample to demonstrate the problem.
Hi All,
Thank you for sharing this in our community. According to the samples browser I will review and investigate this issue further.
Norm, would it be possible for you to provide a simplified sample in order to review it?
Thank you.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
I am also having a similar problem. Basically, I have cascading dropdowns. The second "child" dropdown will not allow selecting the first item. An example of this can be found on the Infragistics samples page here: http://samples.infragistics.com/aspnet/Samples/WebDropDown/EditingAndSelection/Cascade/Default.aspx?cn=drop-down&sid=aeab177c-4515-422b-92d6-869f858c4500
You will notice that if you select "United States", then attempt to select "Alabama", you will be unable to. Now if you select another state first, you will then be able to change your selection to Alabama and everything will work great. My application is seeing the same error, except we sometimes only have one item in the list, so it is completely impossible to select anything.
If I attempt to use the "Cascade Alternative" method (as modeled on the infragistics website), I run into a different problem in my application. In this case, I can select the first item in the first dropdown only if I've selected a different dropdown somewhere on my form previously.
Thanks - CB
I have tried this bothof the following ways:
a. If ( ! this.IsPostBack) { fillComboBoxes() }
b Tied to a, Object Data Source without any explicit server side code to configure the data set and web drop down list
Both approaches exhibited the same behavior. My normal design style is to use re-usable class methods to retrieve data sets and configure he web drop dows and grids. My reasons for this approach are; (a) many of the web drop downs are present on almost evey ypage of this application so using class methods to configure them gives me a single point to modify if I ned to make a global change and (b) many of the data access layer class methds can be shared with a parallel Windows Forms Application.