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

RadCombo set_Text function not supported in Version 2010.1.519.40

1 Answer 32 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
sabeer
Top achievements
Rank 1
sabeer asked on 16 Jun 2011, 09:34 PM
I am using the telerik version 2010.1.519.40 .Iam trying to set the text of radcombobox through javascript .But this code is not supported on this version.On low version it is working.


My javascript function is

function onCheckBoxClick(chk) {
               var combo = document.getElementById("RadComboBox1");
                combo.set_text("CustomText");
             
              
            }

what is the keyword to set and get text of radcombobox in this version of telerik.

1 Answer, 1 is accepted

Sort by
0
Cat Cheshire
Top achievements
Rank 1
answered on 17 Jun 2011, 07:16 AM
You can get the combo client-side using $find(), and then simply set_text() function to set the text:

var combo = $find("<%=RadComboBox1.ClientID %>");
combo.set_text("test");
Tags
ComboBox
Asked by
sabeer
Top achievements
Rank 1
Answers by
Cat Cheshire
Top achievements
Rank 1
Share this question
or