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
I was instructed to upload my code so I zipped up my project and have been trying to send it but it seems the file will not upload. Still in desperate need of help!
I'm having the same problem, any solution so far?
I'm using itemtemplate and when I remove it, it works fine, but I really need itemtemplate.
Thanks
John
I received the following response from Infragistics ...
I’ve research you sample and I am able to compile it but when I run TestControl.aspx I need of some kind of dump database to simulate your scenario. Would you be able to send me a backup of your db with a few records? I see that you are using the RTM build of 9. 2 version. There are a few service release after this version and I would suggest to upgrade and test with it. It is possible this issue to be resolved in it. You could download the latest service release (hot fix ) from our website under your account.
Mickey
When I tried to install the latest service packs I encountered an error and I sent them the following update to my ticket ...
"I downloaded the Service Release NetAdvantage_ASPNET_20102.2101_SR.msp and tried to install it. Once downloaded I extracted the files onto my computer and then double-clicked on the .msp file provided in the zip file. Then I get the msg. that reads "The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch."I can not get through to your phone support because it disconnects when I make any selection from the main calling screen. Please let me know how I can resolve this!"
I wanted to see if anyone receives the same error.
In addition to that I called and was talking to a tech for developer support and he put me on hold for over 15 minutes when I finally hung up and called back and now my call has been next in the queue for 30 minutes!!!
This is ridiculous!
Hello Jay,
Could you try to rebind the dropdown on each postback please. This should solve the issue with the missing items.
Were you able to install the service pack?
Let me know the result.
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.