Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
webcombo selectedcell
posted

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()