I have several infragistics webdropdown lists, each one in its own update panel. In code behind (VB.net), I filter the dropdown lists based on selections from higher-level dropdown lists. I have the dropdown lists set up as:
<asp:UpdatePanel ID="PlantAsync" runat="server" ChildrenAsTriggers="False" UpdateMode="Conditional">
<ContentTemplate>
<ig:WebDropDown ID="PlantsList" AutoPostBack="True" EnableMultipleSelection="true" Width="100px" DropDownContainerWidth="300px" CssClass="LeftAlign" EnableClosingDropDownOnSelect="false" runat="server" NullText=" "/>
</ContentTemplate>
</asp:UpdatePanel>
When the page first loads, everything works fine.
But when the PlantAsync.Update() command is executed, some of the attributes are lost. EnableClosingDropDownOnSelect and Width are set to default, while DropDownContainerWidth and EnableMultipleSelection values seem to be maintained.
The only one I'm concerned about is EnableClosingDropDownOnSelect. Having this return to 'true' prevents the user from selecting multiple items at once. How do I keep this set to 'false' on update?
Hello Jesse,
You may set the EnableClosingDropDownOnSelect property to false on PageLoad or PreRender events.
If you have any questions, please let me know as well.
I have EnableClosingDropDownOnSelect set to false for every dropdown list. Even so, I tried setting it to false in the page_load event and the index_changed event, and it does nothing.