This example illustrates how to customize a style for each item. Since the color is changed for an HTML element, it is necessary to synchronize this settings on each round-trip to the server. For this, handle the client-side combo box' Init and EndCallback event.
Note: the GetItemElement and GetItemRow methods are undocumented and can be changed without any notification with the next release.
Question Comments
Added By: Aris Vlotomas at: 5/12/2014 2:46:54 AM
Hello,
I'm trying to use the following js code, without the for loop, but the listBox is null and the code is crashing.
var item1 = clientComboBox.listBox.GetItemElement(1).firstElementChild;
What can I do?
I just want to add/change styles for a specific item.
Thanks,
Aris
Hello Aris,
I have created a separate ticket on your behalf to process your inquiry more effectively:
ASPxComboBox - How to change a color of text for certain items (E4100 example)
Please refer to it for further correspondence.