Hi,
i have two radcombobox on my page..
<telerik:RadComboBox ID="cboSourceFund" runat="server"
DataSourceID="SourceFundDataSource" DataTextField="AFIMSFundCode" DataValueField="AFIMSFundCode"
Width="55px" Skin="Outlook" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged1" SelectedValue='<%# Bind("SourceAfimsFund") %>'
BorderWidth="1px">
</telerik:RadComboBox>
<telerik:RadComboBox ID="cboSourceFundHidden" runat="server"
DataTextField="AFIMSFundCode" DataValueField="BaseCurrencyCode"
style="display:none;">
</telerik:RadComboBox>
i have one javascript function
function GetCurrency(value) {
var cboSourceFundHidden = document.getElementById("ctl00_messagePanelsContent_contentPlaceHolder_fvAllotmentDetail_cboSourceFundHidden");
for (index1 = 0; index1 < cboSourceFundHidden.options.length; index1++) {
alert("22");
if (cboSourceFundHidden.options[index1].value == value) {
return value;
break;
}
}
}
and this function is called from here
function OnClientSelectedIndexChanged1(item)
{
var currency = GetCurrency(item._value);
}
but the above code is not working and i am not getting count in
alert(cboSourceFundHidden.options.length);
its giving nothing while dropdown object is present
alert(cboSourceFundHidden);
please help.
thanks in advance.