Hi,
When the page loads the WebDropDown is populated with a dataset which is then set to nothing.
When I select a value in the table in the dropdown I populate other textfields based on the values read from the selection in the table in the dropdown.
After that page is posted back, the values in the table in the webdropdown are no longer visible but when selected the values from the selected item do populate the textfields correctly.
It seems that the data is not visible but is there to select from.
Does anyone have any suggestions, I have pretty much exhausted my options?
Thanks!
If you are using <ItemTemplate> you will have to rebind (call DataBind() on the control), after every postback. Data Items are not stored into ViewState , therefore your DataBinding expressions will not evaluate any data.
Thanks,
Angel
I am not using <Item Template> at this point and when I add the line of code wddRecipients.DataBind() at the very end of Page_Load just before the End Sub, I get the following error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[NullReferenceException: Object reference not set to an instance of an object.] Veritext.VIP21.Web.SendNotices.RecipientChanged() +119 Veritext.VIP21.Web.SendNotices.wddRecipients_ValueChanged(Object sender, DropDownValueChangedEventArgs e) +70 Infragistics.Web.UI.ListControls.WebDropDown.OnValueChanged(DropDownValueChangedEventArgs e) +115 Infragistics.Web.UI.ListControls.DropDownBot.RaisePostDataChangedEvent() +2035 Infragistics.Web.UI.Framework.RunBot.HandleRaisePostDataChangedEvent() +213 Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.RaisePostDataChangedEvent() +34 System.Web.UI.Page.RaiseChangedEvents() +165 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485
Hi Jay,
Please could you upload your sample that reproduces the issue and we will investigate it further.
Thanks for your cooperation.
I am giving you the aspx and the vb and 1 class file although it is not relevant for this problem.
The file FilesDb contains a function named GetRecipients that returns a DataSet with all the recipients needed to populate the Recipients webdropdown wddRecipients.
SendNotices.ascx is a control that is located on TestControl.aspx.
SendNotices contains the webdropdown wddRecipients.
RecipientList is used to store the data added to the grid and the grid is bound to that.
I am using a lot of controls from different vendors and it would be a lot of files to send you everything.
If you do need everything please let me know.
I've created a support ticket for this issue with number : CAS-50392-HNB9G8
I will contact you for further information via the support ticket.
Thanks
I will try to provide a screenshot for everyone here.
I have already done so at the Infragistics site where the ticket was created. Before Postback there is data in the table. After Postback the data is still there but not visible. If you select a row in the dropdown the values will still populate the fields below it.
Hello raghumuvvala,
I've reproduced the described behavior. The resolution for it is if you bind the control on each postback not only at the first time.
Best regards,
Hi
I am using webdropdown with itemtemplate and on the postback i cannot see the dataitems but can select them i am doing a databind on every postback too can you please let me know if we need to do anything else.
<ig:WebDropDown runat="server" ID="ddlCSModel" Width="200px"
loadingItemsMessageText ="loading..."
AutoPostBack="true"
DropDownContainerHeight="150px"
DropDownContainerWidth="500px"
OnSelectionChanged="ddlCSModel_SelectionChanged"
>
<HeaderTemplate>
<table style="width: 100%; height: 40px; background-color:DarkBlue;color: White; font-size: 20px; font-weight: bold;" cellspacing="0" cellpadding="4">
<tr>
<td style="width: 350px;">
Model Name
</td>
<td style="width: 150px;">
As of Date
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 100%;" cellspacing="0" cellpadding="4">
<tr style="border-bottom: solid 1px #ff0000;">
<%# DataBinder.Eval(Container.DataItem, "MODEL_NAME")%>
<td style="width: 150px; padding-left: 10px;">
<%# DataBinder.Eval(Container.DataItem, "AsOfDate")%>
</ItemTemplate>
</ig:WebDropDown>
I made all the same changes and am definitely using version 10.2 only.
Now when I hover over the dropdown arrows on the webdropdown, they flicker.
It seems like the size is getting slightly larger and smaller very rapidly giving it the flickering effect.
I can however eventually get a click event to trigger and when I do it a second time again the data does not appear. So I still have the same problem in addition to the new problem of the flickering.
I am not doing a databind of the webdropdown except for on every postback in the page_load event.
Hi John,
Great! It's nice to hear that the issue is resolved. In my previous post I addressed Jay's issue which is similar to yours. If you do not experience any issues with this version my advice is to keep it running. If you find out any is good to know that there are hot fixes available.
Thanks.
Excellent, that made the trick. I also had changed the AutoPostBackFlags already.
It seems that I'm using version 10.2 see this:
Register
="Infragistics35.Web.v10.2, Version=10.2.20102.1011,
Do I still need to install the service pack?
Thank you so much for your help.
John