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

Create RadComboBox using javascript

1 Answer 181 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Prava kafle
Top achievements
Rank 1
Prava kafle asked on 23 Aug 2011, 05:52 PM
Hi,

I want to create a RadComboBox using javascript and add it to the div. Is it possible to create it dynamically at client site?
 
CODE
 if (columnName.toUpperCase() == "ORDER") {
                //Create ComboBox
                var radComboBox = new RadComboBox();
                radComboBox.id = "RadCBox" + ID;
                AddItemsToComboBox(radComboBox, orders);


               var divTag = document.getElementById("dynID");
               divTag.appendChild(radComboBox);
                
            }


Thanks,
Prava

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Aug 2011, 04:44 AM
Hello Prava,

Since these controls are server controls, we cannot create these on the client. But you can create or delete its items client-side (for combobox). Check the following forum thread which explains the same.
how to create radcombobox and datepicker from clientside

Thanks,
Princy.
Tags
ComboBox
Asked by
Prava kafle
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or