Home > DeveloperSection > Forums > How to add radcombobox to cell in a table row cell
Goti Bandu

Total Post:119

Posted on    August-31-2014 11:57 PM


 1 Reply(s)
 1107  View(s)
Rate this:

I am trying to add a RadComboBox to a table row Cell. I cannot use table.row.cells.add(radcombobox) as it expects a cell object. The table is programatically created .

protected override void Page_Init(object sender, EventArgs e) {

        base.Page_Init(sender, e);

        ConfigureTableColumns(DataContext, OperatingConditionsTable, node, segments);

        ConfigureTableRows(DataContext, OperatingConditionsTable, node, segments, inputs);


private void ConfigureTableRows(CtalaDataContext context, Table table, Ctala.Entity.TreeNode reviewNode

IEnumerable<Ctala.Entity.TreeNode> segments, ILookup<string, OperatingConditionInput> inputsGroupedByCategory) {

        foreach (var category in inputsGroupedByCategory) {

            foreach (var input in category) {

                var row = new TableRow() {

                    CssClass = (altRow) ? "rgAltRow" : "rgRow"



                    var cell = new TableCell() {

                    Text = input.Name



                var unitCell = new RadComboBox()


                    ID = "Unit",

                    AllowCustomText = false


                foreach (var item in input.Unit)


                    unitCell.Items.AddRange(new RadComboBoxItem[] { new RadComboBoxItem(item) });


               //cell = new TableCell()


                //    Text = input.Unit



Sumit Kesarwani

Total Post:378

Posted on    September-01-2014 12:33 AM

Hi Goti, 

To add a RadComboBox to your cell:

RadComboBox comboBox = new RadComboBox


    ID = "Foo"


comboBox.Items.Add(new RadComboBoxItem((0).ToString(), "FirstItem"));


Don't want to miss updates? Please click the below button!

Follow MindStick