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

how to get the value for radcombobox value in java script

0 Answers 38 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
karthik
Top achievements
Rank 1
karthik asked on 17 Sep 2008, 11:29 AM
please any one help me ..

How to get the value radcombo for java script .. then how to assign the dataset in to java script
normaly i used for dropdown control like this ref below code .. based on i want to do radcombo pls help me

here GetLanguage() is ajax function return dataset

Ds=GetLanguage(countryid,LoginId,usertype,logintype)

var Language = document.getElementById ("drpLanguage")

Language.options.length=0;

if (Ds != null && Ds != "")

{

var count =Ds.Tables[0].Rows.length

Language.options[Language.options.length]=

new Option("Language","")

for(var i = 0;i < Ds.Tables[0].Rows.length; ++i)

{

Language.options[Language.options.length]=

new Option(Ds.Tables[0].Rows[i].Language,Ds.Tables[0].Rows[i].LanguageId);

}

}

else

{

Language.options[Language.options.length]=

new Option("No Language","")

}

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
karthik
Top achievements
Rank 1
Share this question
or