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

Selected Item : Change Font Size and color dynamically.

1 Answer 594 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Manishkumar
Top achievements
Rank 1
Manishkumar asked on 20 Feb 2012, 11:30 PM
Hi,

I have a RAD Combo box with some 5-10 Items in it.

I would like dynamically change font color and font size for the selected item in the dropdown list.

How can we achieve this. please suggest.

Thanks and regrads,
Manish

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Feb 2012, 05:51 AM
Hello,

Try the following code.
C#:
protected void radCombobox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
 {
    radCombobox1.SelectedItem.Attributes.Add("style", "color:red;");
 }

-Shinu.
Tags
ComboBox
Asked by
Manishkumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or