How do I go about adding a RadGrid to a RadComboBox at runtime in order to make a multi-column dropdown similar to the one sampled here:http://demos.telerik.com/ASPNET/Prometheus/Combobox/Examples/Functionality/Templates/DefaultCS.aspx (the Initiator).
I've created custom Templates before, but I'm having trouble figuring out what steps are necessary in the situation. Among other things I've tried the following:
Thanks.
I've created custom Templates before, but I'm having trouble figuring out what steps are necessary in the situation. Among other things I've tried the following:
DataTable table; |
table = //Set the table via a sql query. |
RadGrid grid = new RadGrid(); |
grid.DataSource = table; |
grid.DataBind(); |
RadComboBoxItem item = new RadComboBoxItem(); |
item.Controls.Add(grid); |
combo.Items.Add(item); |
Thanks.