I have to change the backround of some Items in the ComboBox sitted in Inline Template by server side code , I have used this demo : http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx
But when I set for exple : ComboBox.Items[5].Background=Color.red;
the background not change and if I verify in the result I find that they use .asx files to set style.
?????????????
6 Answers, 1 is accepted
Could you please show me your code where you are trying to change the background of the combobox?
Thank you!
Greetings,
Veronica Milcheva
the Telerik team

this is my source , I need to change the backround
for (int i = 0; i < appointmentsForSelectedHour.Count; i++)
{
radcombo.DataSource = this.currentService.Specialists;
radcombo.DataTextField = "Pseudo";
radcombo.DataValueField = "id";
radcombo.DataBind();
if (appointmentsForSelectedHour[i].isChoosed)
{
List<JCO.BusinessCore.Dbml.Specialist> AvailabaleUser = currentService.Specialists.Where(delegate(JCO.BusinessCore.Dbml.Specialist spec) { return spec.Pseudo == appointmentsForSelectedHour[i].PseudoSpecialist; }).ToList();
if (AvailabaleUser.Count != 0)
{
radcombo.Items[this.currentService.Specialists.IndexOf(AvailabaleUser[0])].BackColor =red;
}
}
}

I'm interested in which event yuo are trying to change the background color of the combobox? Could you please send me a runnable project and I'll try to help you?
Thank you!
Best wishes,
Veronica Milcheva
the Telerik team

I use this code in the event AppointementCreated
Could you please send me your full code so I can inspect it and help you?
Thank you!
Greetings,
Veronica Milcheva
the Telerik team