This is a migrated thread and some comments may be shown as answers.

RadGrid DropDown column with multi-select

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roger McCoy
Top achievements
Rank 1
Roger McCoy asked on 11 May 2010, 06:16 PM
Trying to get a DropDown on a RadGrid to use multi-select. Is this even possible? This is what I've tried so far:

        <telerik:GridDropDownColumn DataField="txtOfficeID" DataSourceID="dsOffices"   
            HeaderText="Office" ListTextField="Office_Name" ListValueField="Office_ID" 
            SortExpression="txtOfficeID" UniqueName="txtOfficeID"
        </telerik:GridDropDownColumn> 
 
    Protected Sub RadGrid1_ItemCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated 
        If TypeOf e.Item Is GridEditFormItem And e.Item.IsInEditMode Then 
            Dim EditFormItem As GridEditFormItem = CType(e.Item, GridEditFormItem) 
            Dim DropDown As RadComboBox = EditFormItem("txtOfficeID").Controls(0) 
            DropDown.AllowCustomText = True 
            DropDown.AutoCompleteSeparator = "," 
        End If 
    End Sub 
 

1 Answer, 1 is accepted

Sort by
0
Roger McCoy
Top achievements
Rank 1
answered on 11 May 2010, 06:34 PM
Never mind. Page was pointing to the wrong .vb file.
Tags
Grid
Asked by
Roger McCoy
Top achievements
Rank 1
Answers by
Roger McCoy
Top achievements
Rank 1
Share this question
or