This is a migrated thread and some comments may be shown as answers.

Add style for first item in RadComboBox

0 Answers 49 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Grzegorz
Top achievements
Rank 1
Grzegorz asked on 27 Feb 2017, 11:48 AM

Hello,

How add style for first item in RadComboBox on the side server?How get first element RadComboBox, element type input ?

protected void ValidationSections()
{

     if (RadComboBox.Text == "")
     {
         RadComboBox.Style.Add("background", "#F7FAA5 !important;"); //not working
         RadComboBoxItem item = RadComboBox.DataValueField(""); // error Non-invocable member '.../DataValueField' cannot be used like a method
         MainContent_RadComboBox_Input.Style.Add("background", "#F7FAA5 !important;"); //  MainContent_RadComboBox_Input.Style not exist in the current context
     }
}

Please help me.

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Grzegorz
Top achievements
Rank 1
Share this question
or