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

GridDropDownColumn

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peng Hooi
Top achievements
Rank 1
Peng Hooi asked on 09 Dec 2011, 04:15 AM
Hello

how do i populate the list into the RadCombox inside the RadGrid with only the records matches the text that user key in in the RadComboBox.

The Reason why is the list that i wish to populate is a large amount of list and it will keep growing very fast. 

i wanted to populate with similar like http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx

in short how i apply "Select [Field], [FieldID] From MyTable where [Field] like '%' + RadComboxBox + '%'"
into GridDropDownColumn's Datasource

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Dec 2011, 05:04 AM
Hello Peng,

You can access the DropDownColumn as shown below.
C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
 if (e.Item is GridEditableItem && e.Item.IsInEditMode)
 {
    GridEditableItem item = (GridEditableItem)e.Item;
    DropDownList ddl = (DropDownList)item["UniqueName"].Controls[0];
  //populate dropdown
 }
}
Tags
Grid
Asked by
Peng Hooi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or