I recently wrote an enhancement to an that included creating a new user control. I initially added all of the new features in a new web application, before integrating it into the existing application. The new user control within this new application worked great and had a couple of WebDropDowns and WebDatePickers.
As soon as I moved the new code from the project into my existing application, however, it stopped working. Everything worked as expected except for the infragistics controls. They (the WebDropDown & WebDatePicker) would not persist their values, nor would they fire any (server-side) events. I eventually resorted to using the non-Ajax version of the controls (the WebCombo & WebDateChooser). The non-ajax controls worked great....they persisted their values and event-firing worked just as expected.
My resolution was to use the non-Ajax controls, however, I would like to know if anyone else has experienced this problem or knows how to resolve it. The code was exactly the same in both projects and the only difference was that the existing application was a website while the project one was a web application. I was using version 9.2.20092.2025 and had the same problem with .2183.
Hello sliefdg,
I think I may had a case previously where when disabling view state on the WebDropDown will not allow the events to fire so you can set the EnableViewState property to true.
Let me know if this works for you. Thank you.
Hi
I am facing the same issue issue on any event or on post back selected value in drop down is not visible it's state is lost binded data is not displayed.
For this I also set EnableViewState="true"
My dropdown is looks like as
<ig:WebDropDown ID="ddlEstimate" runat="server" Width="95%" DropDownAnimationType="EaseInOut" DropDownContainerWidth="500px" DropDownContainerMaxHeight="140px" EnableAutoCompleteFirstMatch="false" DisplayMode="DropDown" EnableAnimations="false" EnableClosingDropDownOnSelect="true" AutoFilterQueryType="Contains" AutoSelectOnMatch="False" EnableAutoFiltering="Client" EnableTheming="true" EnableClosingDropDownOnBlur="true" EnableCustomValueSelection="False" EnableCustomValues="false" TextField="Description" ValueField="Id" ToolTip="Select Estimate" OnSelectionChanged="ddlEstimate_SelectionChanged" EnableViewState="true"> <AutoPostBackFlags SelectionChanged="On" ValueChanged="off" /> <ClientEvents SelectionChanging="selectionchanging" /> <AjaxIndicator ImageUrl="../../images/indicator_bar.gif" Text="loading" /> <HeaderTemplate> <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; height: 18px; font-size: 11pt; font-weight: bold; background-color: #acacac; color: #002a60; table-layout: fixed;"> <tr> <td style="width: 80px;" align="center"> Estimate # </td> <td style="width: 110px;" align="center"> Estimate </td> <td style="width: 60px;" align="center"> Size </td> <td style="width: 60px;" align="center"> Unit </td> <td style="width: 100px;"> Customer </td> </tr> </table> </HeaderTemplate> <ItemTemplate> <table style="width: 100%; table-layout: fixed; font-weight: normal;" cellspacing="2" cellpadding="2"> <tr> <td style="width: 80px; border-bottom: solid 1px #E8E8E8; border-right: solid 1px #E8E8E8;"> <%# DataBinder.Eval(Container.DataItem, "RecordNumber")%> </td> <td style="width: 110px; border-bottom: solid 1px #E8E8E8; border-right: solid 1px #E8E8E8;"> <%# DataBinder.Eval(Container.DataItem, "Description")%> </td> <td style="width: 60px; border-bottom: solid 1px #E8E8E8; border-right: solid 1px #E8E8E8;"> <%# DataBinder.Eval(Container.DataItem, "Size")%> </td> <td style="width: 60px; border-bottom: solid 1px #E8E8E8; border-right: solid 1px #E8E8E8;"> <%# DataBinder.Eval(Container.DataItem, "Unit")%> </td> <td style="width: 100px; padding-left: 10px; border-bottom: solid 1px #E8E8E8;"> <%# DataBinder.Eval(Container.DataItem, "Customer")%> </td> </tr> </table> </ItemTemplate> </ig:WebDropDown>
However, I do thank you for your reply.
Viewstate was enabled. Please read the notes that this was working in one project, not the other. The Code was exaclty the same.