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

Parents
  • 145
    posted

    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?

Reply Children
No Data