Hello,
After selecting an item in the webdropdown, the dropdown reappears. Here is the code for the control.
<ig:WebDropDown ID="ctlOrderRuns" runat="server" Width="200px" AutoPostBack="True" AutoSelectOnMatch="False" DisplayMode="DropDownList" EnableAnimations="False" EnableAutoCompleteFirstMatch="False" onselectionchanged="ctlOrderRuns_SelectionChanged1"> <AutoPostBackFlags SelectionChanged="Async" /> <clientevents /></ig:WebDropDown>
If I select an item and the click on the dropdown box arrow, then the dropdown will not reappear.
Is there somehting I need to turn off to get the control to select an item when clicked?
It did work before I applied the 9.1 August service release that applied; however, I need it so I can disable the control throw javascript.
Later,
Mike
Hi Mike,
The dropdown does close every time i select an item - i use the markup you have provided in the original post. Could you tell me exactly which build number you are using?
Thanks,
Angel
Ok. The focus has been lost on the problem here. The problem is that on any selected item on the control, the dropdown should close. This was the behavior in the original v9.1 that I was using before applying the v9.1 August service release. I need this behavior back. I cannot revert back to the original because of the javascript bug set_enabled bug that got fixed in the August service release.
If you have set AutoPostBackFlags in markup or code behind, it overrides AutoPostBack property (derived from WebControl), and even if AutoPostBack=false, you will still have postback. if it is set to Async, the postback is not full but done through AJAX request, probably that's why you don't see full page load - but it still does a postback. If you put a breakpoint in the server-side selection event handler, you will see it hits it.
About the behavior - When I select an item and have AutoPostBack=true, the dropdown is closed because a full postback is made (i.e. the whole page is reloaded). If i set AutoPostBack=false, and have AutoPostBackFlags for SelectionChanged=Async, the dropdown is kept open, but its contents are refreshed, when data comes back.
Please let me know if I can help further - any suggestions to improve this behavior are welcome.
That didn't work and kills any type post back. To do a full post back on the control, you would set the postback flag to "on" instead of "async". if autoPostBack is false, then no type of postback occurs.
This probably happens because you have AutoPostBack=True. This will enable full postback for both ValueChanged and SelectionChanged. If you already have it for SelectionChanged set to Async, you can set AutoPostBack=False.