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
Hello Norm,
Did you have a chance to review the sample?
If you need further assistance with this matter do not hesitate to contact me.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Hi Norm,
Here I am attaching the sample modified.
What I experience is:
When I run it in debug mode and select the second item first the CalueChanged is hit after that SelectionChanged.
I selected the third item and the events are fired in the same way.
After that I went back to the first Item and again they are fired in the same way.
I tested a couple of time changing the order of the selection of the elements.
Please review the sample and let me know your comments. Correct me if I missed something.
Looking forward to hear from you.
Hi Georgi,
I tried your example using the AutoPostBackFlags setting only and it still does not work for me. However, if I use the AutoPostBackFlags ALONG WITH setting AutoPostBack = True, then my sample worked for the _ValueChanged() event.
<
ig:WebDropDown ID="wddCompanyType" runat="server" Width="200px"
>
I just tested the project provided. Thank you so much for taking time to isolate this sample. I debugged it and I noticed that:
You have autopostback set to true. You need to change it like this:
<ig:WebDropDown ID="wddCompanyType" runat="server" Width="200px"
onvaluechanged="wddCompanyType_ValueChanged">
<AutoPostBackFlags SelectionChanged="Async" />
</ig:WebDropDown>
Always use the autopostbackflags to set them.
Try this and let me know if you have further questions.
Update for my actual application:
I was using the WDD event ValueChanged(). When I switched this to instead use the event SelectionChanged(), I am now able to re-select the first item in the WDD and have my cascaded grids refresh. Note that the Update Panel trigger is still the WDD_ValueChanged() event but the Server side event that I am now using to refresh the records in the gris is the WDD_SelectionChanged() event.
If I use the server-side event WDD_ValueChanged() and have the trigger for the first Update Panel in the chane also set to the WDD_ValueChanged() event, then my original problem remains true.
I am attaching a zip with a simple example. Ignore my prior question about using the SQL AdventureWorks database. The sample demonstrates the problem without requiring any database. The default Infragistics Styles had to be deleted in order to fit within your 200KB file size constraint so you will need to open the page in the designer and get the ig_res default folder back into the project. IT IS A WEB PROJECT, NOT A WEB SITE.