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

how to add combobox dynamically using java script.

1 Answer 113 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Uma
Top achievements
Rank 1
Uma asked on 20 Jan 2012, 05:07 AM
i am using vs2010.
i need to add rad combo box dynamically using java script.
i already add some html controls dynamically in java script.
my code is below.
if (!objPropertyInsp.hasOwnProperty("sctid"))
           {
               contentHTML += "<tr><td>sctid</td><td><input type='text' style='width:100%;' id='txtsctid'" + "' value ='' /><td><div id='dvcombo'></div><img src='Images/find.png' alt='Pick' width='16px' height='16px' onclick='openSearchAttributes(); ' /> </td></td></tr>";
           }
           else if (objPropertyInsp.hasOwnProperty("sctid"))
           {           
                   contentHTML += "<tr><td>sctid</td><td><input type='text' style='width:100%;' id='txtsctid' value ='" + objPropertyInsp["sctid"] + "' /><td><img src='Images/find.png' alt='Pick' width='16px' height='16px' onclick='openSearchAttributes();' /></td></td></tr>";                                                     
           }
i added two td in table. i need to add rad combo next to text box.

how to add radcombo box and how to bind the values to radcombo.

thanks,
uma

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Jan 2012, 05:24 AM
Hello Uma,

Since RadComboBox is a  server control, 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

-Shinu.
Tags
ComboBox
Asked by
Uma
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or