Hi,
I have a combobox. Under most circumstances I want it set to the dropdown mode (checkbox=false). In a certain cases I would like the combobox to have its checkbox property set to true. This being the case switching between the dropdown mode and the checkbox mode would have to be done in the code behind (or perhaps javascript which is not one of my talents). I tried this code
stringcurrControl = fld.ControlName;
RadComboBoxcmb = (RadComboBox)FindControl(currControl);
cmb.Enabled = true;
if(rule == 3 && fld.Field.Replace("\r\n","") == "PROBLEM_TYPE")
{
cmb.CheckBoxes==true;
}
The last line: cmb.CheckBoxes==true; throws an error during compilation:
"only assignment call increment decrement and new object can be used as a statement"
Is it that the combobox can be set to checkbox=true in the declaration of the combobox. How can this be done? Any help would be appreciated.
Thanks,
Neil
Hi Guys,
I rarely post but the last time I did I created a ticket with in a day or so after the forum post. I got the impression that you were not thrilled that I had created a forum post and then a ticket within a couple of days. I don't want to do this again but I am wondering if I will get an answer. If this is not something that can be solved easily, please let me know. I have a clumsy work around that I can try but I'd like to know if I need to. I know I'm not the only person who is under pressure but If I know there is a reason to wait it makes my decisions easier.
Thanks,
Neil