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

RadCombo SetText Problem in Version 2010.1.519.40

1 Answer 61 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
josephjijo
Top achievements
Rank 1
josephjijo asked on 16 Jun 2011, 09:31 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
Princy
Top achievements
Rank 2
answered on 17 Jun 2011, 07:39 AM
Hello Joseph,

If you want to get a reference to the client-side object of a particular control, you should use $find instead of document.getElementById function.

Clientside.

function onCheckBoxClick(chk)
      {
         var combo = $find("<%= RadComboBox1.ClientID %>");
         combo.set_text("CustomText");
       }
Also take a look at the following help document.
RadComboBox Object.

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