I have two comboboxes that are inside a panel control. The panel's visibility is false initially. When the user selects an option, the panel with the 2 combo boxes is made visible. Depending on what the user selects in the first combo box, I need to enable or disable the second combo box client side. However, I am unable to access the combo using $find('<%= cbxAdminAction.ClientID %>').
I have also tried accessing the combo boxes usingTelerik.Web.UI.RadComboBox.ComboBoxes.
I was able to find the combo controls in the Firebug console. However, when the page loads, Telerik.Web.UI.RadComboBox.ComboBoxes[14] is out of range.
How do I access the combo boxes from client side?
The function below is wired to the onClientSelectedIndexChanged event for the first combo box.
01.
function
EnableSubActionDropDown(combo, eventArgs)
02.
{
03.
var
value = Telerik.Web.UI.RadComboBox.ComboBoxes[14].get_value();
04.
05.
if
(value !=
"99"
)
06.
{
07.
Telerik.Web.UI.RadComboBox.ComboBoxes[15].disable;
08.
}
09.
else
10.
{
11.
Telerik.Web.UI.RadComboBox.ComboBoxes[15].enable;
12.
}
13.
}