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
100
WebDropDown Property EnableClosingDropDownOnSelect ignored
posted

Hallo,

I'm using Infragistics ASP.NET Release 13.1.20131.2242.

I want to use the WebDropDown-Control with multiselection.
But after selection an item, the DropDown-List close.

It seems the EnableClosingDropDownOnSelect property will be ignored.

I use following code.

ASPX:
<ig:WebDropDown ID="WebDropDown1" runat="server" Width="200px" EnableAnimations="False" EnableClosingDropDownOnSelect="False" EnableMultipleSelection="True" NullText="empty"></ig:WebDropDown>
<
asp:label runat="server" text="Label" ID="Label1"></asp:label><br />
<asp:Button ID="Button1" runat="server" Text="Button" />

CodeBehind in VB.Net CLR 4.0:

Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgsHandles Me.Load
        If Page.IsPostBack = False Then
            Dim dropItem As DropDownItem
            For i = 1 To 10
                dropItem = New DropDownItem("Value " & i, i)
                WebDropDown1.Items.Add(dropItem)
            Next
        End If
 
 
    End Sub
 
    Private Sub Button1_Click(sender As Object, e As EventArgsHandles Button1.Click
        Dim dropItem As DropDownItem
        Label1.Text = ""
        For Each dropItem In WebDropDown1.Items
            If dropItem.Selected Then
                Label1.Text &= dropItem.Text & " "
            End If
        Next
    End Sub