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

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -