Hi,
I'm using webcombo with Infragistics version 11.1.20111.1006, i ran it on IE9.
Basically i'm using it as a search dropdown, the first time selecting the item, it's able to detect it.
how to get the selected value? currently i'm using like below:
Dim reqStatus As String = "" If Not (IsNothing(ddlRequestStatus.SelectedCell)) Then reqStatus = ddlRequestStatus.SelectedCell.Value End If
However after selecting the webcombo item then when I navigate to other control, the selectedcell becomes nothing.. even though in the UI the selected value is there in the control display text.
Any idea why like this and how to solve it?
My code is quite simple:
<igcmbo:WebCombo ID="ddlRequestStatus" runat="server" Version="4.00"> <DropDownLayout BorderCollapse="Separate" DropdownHeight="225px" DropdownWidth="222px" RowHeightDefault="20px" Version="4.00"/> </igcmbo:WebCombo>
code behind:
ddlRequestStatus.DataSource = reqStatusTable ddlRequestStatus.DataValueField = "Value" ddlRequestStatus.DataTextField = "Value" ddlRequestStatus.DataValue = "Value" ddlRequestStatus.DisplayValue = "Value" ddlRequestStatus.DataBind()
I have been looking into your issue and since this is not a known issue and I cannot be completely sure how your data is organized and what settings are applied, I am not able to conclude what can cause it, soif this is still an issue for you, could you please send an isolated sample, where the issue is reproduced, so I can investigate it further for you. This would be highly appreciated. Looking forward to hearing from you!
Hello,
Thank you for using our forum!
About your question, the way you get the selected value is correct, the code snipped too. Could you please provide me with isolated sample, where the issue is reproduce so I can investigate it further for you.
Looking forward to hearing from you!
Hi, to add more information.
Basically my webcombo control is inside user control ascx and my aspx only has placeholder where it will add the user control on page_load function.
so i cannot put not ispostback in my ascx file and i think that's y the value in the webcombo keeps on disappearing..
but the weird thing is that i also have another control normal aspx dropdown in my ascx file, this doesnt give such issue. I still can retrieve the selected value although the usercontrol is always postback.
Is there any workaround for this?