visual studio - Setting selection in a rad combo box -
i'm sure quite simple can't seem work. i'm trying set selection of radcombobox using ondatabound function.
protected void reto_databound(object sender, radcomboboxitemeventargs e) { if (e == null) throw new argumentnullexception("e"); var combo = sender radcombobox; if (combo.finditembytext("jack johnson") != null) combo.finditembytext("jack johnson").selected = true; }
i think i'm calling combobox incorrectly.
thanks help.
i can't solve here finditembytext "smelly" :), don't item string value, 1 char difference...
try check item value not text , see happens.
cheers
Comments
Post a Comment