hi
I have radcombobox.
now when my page loads some values are selected in the combobox.
now i m checking client side that if something is selected in the combobox then i disable a radtextbox and if nothing is selected then i enable the same.
now i have added a custom validator on another combobox which is dependent on the first combobox.
if first combobox is not selected then no validation and if the first combobox have selected value and second combo have not any selected value then i show error.
i used
function validate(sender,args)
{
args>IsValid=true;
cmb1=$find("<%= cmb1ID.ClientID%>");
cmb2=$find("<%= cmb2ID.ClientID%>");
if(cmb1.get_selectedIndex()>0 && cmb2.get_selectedIndex()<0) // I have also used cmb1.get_value() and cmb1.get_selectedItem()
{
args.IsValid=false;
return
}
and the first item in my combobox is null and second item is "Please Select" and the remaining items are there.
alnd aloow custom text is true.
please help me to validate the above problem
its urgent.
}
}
I have radcombobox.
now when my page loads some values are selected in the combobox.
now i m checking client side that if something is selected in the combobox then i disable a radtextbox and if nothing is selected then i enable the same.
now i have added a custom validator on another combobox which is dependent on the first combobox.
if first combobox is not selected then no validation and if the first combobox have selected value and second combo have not any selected value then i show error.
i used
function validate(sender,args)
{
args>IsValid=true;
cmb1=$find("<%= cmb1ID.ClientID%>");
cmb2=$find("<%= cmb2ID.ClientID%>");
if(cmb1.get_selectedIndex()>0 && cmb2.get_selectedIndex()<0) // I have also used cmb1.get_value() and cmb1.get_selectedItem()
{
args.IsValid=false;
return
}
and the first item in my combobox is null and second item is "Please Select" and the remaining items are there.
alnd aloow custom text is true.
please help me to validate the above problem
its urgent.
}
}