In Web 2.0 I can change the background color of the text field and the menu with JavaScript. However, I am not able to change the text color of the menu items (I need a dark menu background, the menuitems should have a white text color). The ContextualMenu example shows that it really has to be simple, but there is no property TextColor for the MenuItems of the ComboBox. There are some examples for JavaScript and CSS on stackoverflow, unfortunately I didn’t have any success with them. Anyone an idea?
My Code in the Shown-Event after adding the rows in the Opening:
JSString = “document.getElementById(’”+me.ControlID+"_input’)"
me.ExecuteJavaScript JSString +".style.backgroundColor = ‘rgba(28, 29, 28, 1)’;"
JSString = “document.getElementById(’”+me.ControlID+"_input’)"
me.ExecuteJavaScript JSString +".style.borderColor = ‘rgba(100,100,100)’;"
JSString = “document.getElementById(’”+me.ControlID+"_input’)"
me.ExecuteJavaScript JSString +".style.textColor = ‘rgba(255, 255, 255)’;"
JSString = “document.getElementById(’”+me.ControlID+"_menu’)"
me.ExecuteJavaScript JSString +".style.backgroundColor = ‘rgba(22, 23, 22, 1)’;"
JSString = “document.getElementById(’”+me.ControlID+"_menu’)"
me.ExecuteJavaScript JSString +".style.textColor = ‘rgba(0, 0, 0)’;"
JSString = “document.getElementById(’”+me.ControlID+"_button’)"
me.ExecuteJavaScript JSString +".style.backgroundColor = ‘rgba(10,10,10)’;"
JSString = “document.getElementById(’”+me.ControlID+"_button’)"
me.ExecuteJavaScript JSString +".style.borderColor = ‘rgba(100,100,100)’;"