如何使用RadAutocomplete列表项添加复选框?

时间:2016-10-27 06:26:15

标签: vb.net winforms telerik

我希望在Winforms中使用Telerik Autocomplete建议框(文本框)和多选下拉列表...任何一个举例?

Public Sub New()
        InitializeComponent()       
        Me.SetupAutoComplete(Me.RadAutoCompleteBox2)
        Me.radDropDownListAutoCompleteMode.DropDownStyle = RadDropDownStyle.DropDownList
        Me.radDropDownListAutoCompleteMode.SelectedIndex = 0
        AddHandler Me.radDropDownListAutoCompleteMode.SelectedIndexChanged, AddressOf OnRadDropDownListAutoCompleteModeSelectedIndexChanged
End Sub




    Private Sub SetupAutoComplete(ByVal radAutoCompleteBox As RadAutoCompleteBox)
        AddHandler radAutoCompleteBox.Items.CollectionChanged, AddressOf OnItemsCollectionChanged
        radAutoCompleteBox.AutoCompleteDisplayMember = "Name"
        radAutoCompleteBox.AutoCompleteValueMember = "Email"
        AddHandler radAutoCompleteBox.ListElement.VisualItemFormatting, AddressOf OnListElementVisualItemFormatting
        radAutoCompleteBox.AutoCompleteDataSource = New BindingSource(Me.GetAutoCompleteDataSource(), String.Empty)
        radAutoCompleteBox.DropDownMaxSize = New Size(200, 0)
        'Me.FillList(radAutoCompleteBox.Items)
    End Sub

添加以上代码以在自动填充建议框列表中创建和填充数据。如何添加复选框与建议框列表项返回结果?

0 个答案:

没有答案